Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

Nyan Cat on Facebook

1
2
3
4
[[265434590178748]] [[164991926934921]] [[209695692449988]] [[250490361685507]] [[278968458819422]] [[349625665051383]] [[205760419511603]].
[[312189672135533]] [[299788346731384]] [[268532783202434]] [[266669970059695]] [[204170799672068]] [[187204144709527]] [[331078983588306]].
[[149240955184679]] [[206407216112871]] [[240669959335314]] [[180619528702085]] [[347768705240557]] [[186661331430535]] [[218646048216424]].
[[344875905539434]] [[328111047214223]] [[323186421038846]] [[157802940990663]] [[159535350818164]] [[296581710385765]] [[271261609598535]].
https://snipt.net/embed/b5a53ddd22c32b3f613db0da14328149/
https://snipt.net/raw/b5a53ddd22c32b3f613db0da14328149/
b5a53ddd22c32b3f613db0da14328149
text
Text only
4
2016-11-26T19:21:24
True
False
False
/api/public/snipt/34630/
nyan-cat-on-facebook
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>[[265434590178748]] [[164991926934921]] [[209695692449988]] [[250490361685507]] [[278968458819422]] [[349625665051383]] [[205760419511603]]. </span><span id="L-2"><a name="L-2"></a>[[312189672135533]] [[299788346731384]] [[268532783202434]] [[266669970059695]] [[204170799672068]] [[187204144709527]] [[331078983588306]]. </span><span id="L-3"><a name="L-3"></a>[[149240955184679]] [[206407216112871]] [[240669959335314]] [[180619528702085]] [[347768705240557]] [[186661331430535]] [[218646048216424]]. </span><span id="L-4"><a name="L-4"></a>[[344875905539434]] [[328111047214223]] [[323186421038846]] [[157802940990663]] [[159535350818164]] [[296581710385765]] [[271261609598535]]. </span></pre></div> </td></tr></table>
misc

JavaScript

omg infinite hellos!

1
2
3
4
5
6
7
/*sorry if this is totally spamming. :p I did learn to utilise the setInterval thingy though :D*/

setInterval(function { 
              alert('Hello!'); 
           }, 1000);

/* means that every second, run the first function. */
https://snipt.net/embed/838a408e91f1db3747015628b1c2357e/
https://snipt.net/raw/838a408e91f1db3747015628b1c2357e/
838a408e91f1db3747015628b1c2357e
js
JavaScript
7
2016-11-26T19:21:33
True
False
False
/api/public/snipt/34531/
omg-infinite-hellos
<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> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cm">/*sorry if this is totally spamming. :p I did learn to utilise the setInterval thingy though :D*/</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nx">setInterval</span><span class="p">(</span><span class="kd">function</span> <span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nx">alert</span><span class="p">(</span><span class="s1">&#39;Hello!&#39;</span><span class="p">);</span> </span><span id="L-5"><a name="L-5"></a> <span class="p">},</span> <span class="mi">1000</span><span class="p">);</span> </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a><span class="cm">/* means that every second, run the first function. */</span> </span></pre></div> </td></tr></table>
javascript, misc

Text only

scope

1
2
3
4
5
if a variable is created inside a function, it only stays in that function. It cannot be used somewhere else.

But global variables can.

*dramatic music*
https://snipt.net/embed/67eb35651bb879120edceb8a85ee89ab/
https://snipt.net/raw/67eb35651bb879120edceb8a85ee89ab/
67eb35651bb879120edceb8a85ee89ab
text
Text only
6
2016-12-02T23:10:45
True
False
False
/api/public/snipt/34272/
scope-2
<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>if a variable is created inside a function, it only stays in that function. It cannot be used somewhere else. </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>But global variables can. </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>*dramatic music* </span></pre></div> </td></tr></table>
javascript, misc

Text only

very good example of Good Serif Typography

http://cameronmoll.com/archives/2008/04/designing_with_type_characters/
https://snipt.net/embed/06b104b6bb482df0ae2ae341a164c2f3/
https://snipt.net/raw/06b104b6bb482df0ae2ae341a164c2f3/
06b104b6bb482df0ae2ae341a164c2f3
text
Text only
1
2016-12-01T03:04:30
True
False
False
/api/public/snipt/30632/
example-of-good-serif-typography
<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>http://cameronmoll.com/archives/2008/04/designing_with_type_characters/ </span></pre></div> </td></tr></table>
misc

HTML

Home page buttons

<div style="text-align:center"><a href="LINKTOLOGINPAGE"><img src="PATHTOLOGINIMAGE"/></a> <a href="LINKTOSIGNUP" target="_blank">
<img src="PATHTOSIGNUPIMAGE"/></a></div>
https://snipt.net/embed/81128d9fa4d05c074bd7474b7f85f75a/
https://snipt.net/raw/81128d9fa4d05c074bd7474b7f85f75a/
81128d9fa4d05c074bd7474b7f85f75a
html
HTML
2
2016-11-29T04:35:17
True
False
False
/api/public/snipt/26238/
home-page-buttons
<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="p">&lt;</span><span class="nt">div</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;text-align:center&quot;</span><span class="p">&gt;&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;LINKTOLOGINPAGE&quot;</span><span class="p">&gt;&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;PATHTOLOGINIMAGE&quot;</span><span class="p">/&gt;&lt;/</span><span class="nt">a</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;LINKTOSIGNUP&quot;</span> <span class="na">target</span><span class="o">=</span><span class="s">&quot;_blank&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;PATHTOSIGNUPIMAGE&quot;</span><span class="p">/&gt;&lt;/</span><span class="nt">a</span><span class="p">&gt;&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
misc
Copyrighted, illegal, or inappropriate content? Email [email protected].