snipt

Ctrl+h for KB shortcuts

Text only

Most recent version, jQuery hosted

http://code.jquery.com/jquery-latest.min.js
https://snipt.net/embed/1cab2ced25785b6842f25a439c664fc2/
/raw/1cab2ced25785b6842f25a439c664fc2/
1cab2ced25785b6842f25a439c664fc2
text
Text only
1
2019-07-14T10:28:36
True
False
False
Jan 14, 2014 at 12:32 PM
/api/public/snipt/105842/
most-recent-version-jquery-hosted
<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://code.jquery.com/jquery-latest.min.js </span></pre></div> </td></tr></table>
jQuery

CSS

haslayout peekaboo 2

ul li ol li {zoom:normal;} /* added 29/03/10 - to correct ul>li>ol>li counting  */
https://snipt.net/embed/3faf0f31daeeb869d0b31b27e2a016c1/
/raw/3faf0f31daeeb869d0b31b27e2a016c1/
3faf0f31daeeb869d0b31b27e2a016c1
css
CSS
1
2019-07-20T06:33:50
True
False
False
/api/public/snipt/13289/
haslayout-peekaboo-2
<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="nt">ul</span> <span class="nt">li</span> <span class="nt">ol</span> <span class="nt">li</span> <span class="p">{</span><span class="n">zoom</span><span class="o">:</span><span class="nb">normal</span><span class="p">;}</span> <span class="c">/* added 29/03/10 - to correct ul&gt;li&gt;ol&gt;li counting */</span> </span></pre></div> </td></tr></table>
"ie6 fixes", css

PHP

<?php echo$_SERVER['PHP_SELF']; ?> makes sure that its valid in HTML Tidy in Firefox

<form action="<?php echo$_SERVER['PHP_SELF']; ?>" method="post" id="contactform">
https://snipt.net/embed/8045b19c5b075069b4c7d58b987e2733/
/raw/8045b19c5b075069b4c7d58b987e2733/
8045b19c5b075069b4c7d58b987e2733
php
PHP
1
2019-07-18T05:16:00
True
False
False
Apr 22, 2014 at 07:43 PM
/api/public/snipt/4207/
php-echo_serverphp_self-makes-sure-that-its-valid-in-html-tidy-in-firefox
<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="x">&lt;form action=&quot;</span><span class="cp">&lt;?php</span> <span class="k">echo</span><span class="nv">$_SERVER</span><span class="p">[</span><span class="s1">&#39;PHP_SELF&#39;</span><span class="p">];</span> <span class="cp">?&gt;</span><span class="x">&quot; method=&quot;post&quot; id=&quot;contactform&quot;&gt;</span> </span></pre></div> </td></tr></table>
forms

MySQL

Refresh row positions after deleting one

ALTER TABLE tablename AUTO_INCREMENT = 1
https://snipt.net/embed/b717021adcef5b85659677c4aff975e4/
/raw/b717021adcef5b85659677c4aff975e4/
b717021adcef5b85659677c4aff975e4
mysql
MySQL
1
2019-07-20T15:32:28
True
False
False
/api/public/snipt/3567/
refresh-row-positions-after-deleting-one
<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="k">ALTER</span> <span class="k">TABLE</span> <span class="n">tablename</span> <span class="kp">AUTO_INCREMENT</span> <span class="o">=</span> <span class="mi">1</span> </span></pre></div> </td></tr></table>
mysql