Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash Session

Colorize console for git

git config --global color.ui true
https://snipt.net/embed/99042d201bbce5a6dc3a670d1ec83389/
https://snipt.net/raw/99042d201bbce5a6dc3a670d1ec83389/
99042d201bbce5a6dc3a670d1ec83389
shell-session
Bash Session
1
2016-12-07T04:51:47
True
False
False
Sep 27, 2013 at 01:48 PM
/api/public/snipt/83653/
colorize-console-for-git
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="go">git config --global color.ui true</span> </span></pre></div> </td></tr></table>
color, colorscheme, console, git, terminal

Java

Loop Through All Values of Luminance

int dmod = frameCount%510;
int col = dmod<255?dmod:510-dmod;
https://snipt.net/embed/1401a9bebbf0fc3b97bc401abdc003ad/
https://snipt.net/raw/1401a9bebbf0fc3b97bc401abdc003ad/
1401a9bebbf0fc3b97bc401abdc003ad
java
Java
2
2016-12-09T02:23:19
True
False
False
Aug 01, 2013 at 07:40 AM
/api/public/snipt/71174/
loop-through-all-values-of-luminance
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="kt">int</span> <span class="n">dmod</span> <span class="o">=</span> <span class="n">frameCount</span><span class="o">%</span><span class="mi">510</span><span class="o">;</span> </span><span id="L-2"><a name="L-2"></a><span class="kt">int</span> <span class="n">col</span> <span class="o">=</span> <span class="n">dmod</span><span class="o">&lt;</span><span class="mi">255</span><span class="o">?</span><span class="n">dmod</span><span class="o">:</span><span class="mi">510</span><span class="o">-</span><span class="n">dmod</span><span class="o">;</span> </span></pre></div> </td></tr></table>
color, processing

CSS

CSS Noise background

1
2
3
4
5
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCA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ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);

background-color: red; /* Choose your own color */

/* Source: http://coderwall.com/p/m-uwvg */
https://snipt.net/embed/bdd0747114f5a6c96b73ef77127e7919/
https://snipt.net/raw/bdd0747114f5a6c96b73ef77127e7919/
bdd0747114f5a6c96b73ef77127e7919
css
CSS
5
2016-12-07T16:41:57
True
False
False
Jan 27, 2014 at 02:29 AM
/api/public/snipt/49323/
css-noise-background
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">background-image</span><span class="o">:</span> <span class="nt">url</span><span class="o">(</span><span class="nt">data</span><span class="nd">:image</span><span class="o">/</span><span class="nt">png</span><span class="o">;</span><span class="nt">base64</span><span class="o">,</span><span class="nt">iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4</span><span class="o">+</span><span class="nt">NjY19fX2JiYl</span><span class="o">/</span><span class="nt">f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T</span><span class="o">/</span><span class="nt">hRo9</span><span class="o">/</span><span class="nt">WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty</span><span class="o">/</span><span class="nt">nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz</span><span class="o">/</span><span class="nt">GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi</span><span class="o">+</span><span class="nt">IlPdqo</span><span class="o">+</span><span class="nt">hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF</span><span class="o">/</span><span class="nt">C1M8uP</span><span class="o">/</span><span class="nt">ZtYdiuj26UdAdQQSXQErwSOMzt</span><span class="o">/</span><span class="nt">XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo</span><span class="o">+</span><span class="nt">EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN</span><span class="o">+</span><span class="nt">cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM</span><span class="o">+</span><span class="nt">I2EfhA94iG3L7uKrR</span><span class="o">+</span><span class="nt">GdWD73ydlIB</span><span class="o">+</span><span class="nt">6hgref1QTlmgmbM3</span><span class="o">/</span><span class="nt">LeX5GI1Ux1RWpgxpLuZ2</span><span class="o">+</span><span class="nt">I</span><span class="o">+</span><span class="nt">IjzZ8wqE4nilvQdkUdfhzI5QDWy</span><span class="o">+</span><span class="nt">kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x</span><span class="o">+</span><span class="nt">KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W</span><span class="o">/</span><span class="nt">Rgjda1iqQcOJu2WW</span><span class="o">+</span><span class="nt">76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q</span><span class="o">+</span><span class="nt">k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP</span><span class="o">+</span><span class="nt">ttrq</span><span class="o">+</span><span class="nt">AsWpFG2awvsuOqbipWHgtuvuaAE</span><span class="o">+</span><span class="nt">A1Z</span><span class="o">/</span><span class="nt">7gC9hesnr</span><span class="o">+</span><span class="nt">7wqCwG8c5yAg3AL1fm8T9AZtp</span><span class="o">/</span><span class="nt">bbJGwl1pNrE7RuOX7PeMRUERVaPpEs</span><span class="o">+</span><span class="nt">yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip</span><span class="o">/</span><span class="nt">ppIhA1</span><span class="o">/</span><span class="nt">mSZ</span><span class="o">/</span><span class="nt">RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p</span><span class="o">+</span><span class="nt">tktDYYSNflcxI0iyO4TPBdlRcpeqjK</span><span class="o">/</span><span class="nt">piF5bklq77VSEaA</span><span class="o">+</span><span class="nt">z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK</span><span class="o">+/</span><span class="nt">q</span><span class="o">/</span><span class="nt">AWR0tJzYHRULOa4MP</span><span class="o">+</span><span class="nt">W</span><span class="o">/</span><span class="nt">HfGadZUbfw177G7j</span><span class="o">/</span><span class="nt">OGbIs8TahLyynl4X4RinF793Oz</span><span class="o">+</span><span class="nt">BU0saXtUHrVBFT</span><span class="o">/</span><span class="nt">DnA3ctNPoGbs4hRIjTok8i</span><span class="o">+</span><span class="nt">algT1lTHi4SxFvONKNrgQFAq2</span><span class="o">/</span><span class="nt">gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq</span><span class="o">+</span><span class="nt">f8XN</span><span class="o">+</span><span class="nt">A5eeUKHWvJWJ2sgJ1Sop</span><span class="o">+</span><span class="nt">wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5</span><span class="o">+</span><span class="nt">LbVT99wqTdx29lMUH4OIG</span><span class="o">/</span><span class="nt">D86ruKEauBjvH5xy6um</span><span class="o">/</span><span class="nt">Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH</span><span class="o">/</span><span class="nt">QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp</span><span class="o">/</span><span class="nt">3fEV5a</span><span class="o">+</span><span class="nt">4wz</span><span class="o">//</span><span class="nt">6qy8JxjZsmxxy5</span><span class="o">+</span><span class="nt">4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt</span><span class="o">+</span><span class="nt">4</span><span class="o">/</span><span class="nt">wuqcXY47QILbgAAAABJRU5ErkJggg</span><span class="o">==);</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nt">background-color</span><span class="o">:</span> <span class="nt">red</span><span class="o">;</span> <span class="c">/* Choose your own color */</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="c">/* Source: http://coderwall.com/p/m-uwvg */</span> </span></pre></div> </td></tr></table>
background, color, css, images
Copyrighted, illegal, or inappropriate content? Email [email protected].