Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

Fill in form with test results.

1
2
3
4
5
6
$("input[type='text']").val("test"); 
$("input[name='email']").val("[email protected]");
$("input[type='email']").val("[email protected]");
$("textarea").val("This is a test.");
$("select").each(function(){$(this).children().last().attr("selected","selected");});
$("input[type='checkbox']").attr('checked', true);
https://snipt.net/embed/0c8821e4e847c0fd4ac03b8fdbb672de/
https://snipt.net/raw/0c8821e4e847c0fd4ac03b8fdbb672de/
0c8821e4e847c0fd4ac03b8fdbb672de
text
Text only
6
2016-12-04T03:55:20
True
False
False
/api/public/snipt/81249/
fill-in-form-with-test-results
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$(&quot;input[type=&#39;text&#39;]&quot;).val(&quot;test&quot;); </span><span id="L-2"><a name="L-2"></a>$(&quot;input[name=&#39;email&#39;]&quot;).val(&quot;[email protected]&quot;); </span><span id="L-3"><a name="L-3"></a>$(&quot;input[type=&#39;email&#39;]&quot;).val(&quot;[email protected]&quot;); </span><span id="L-4"><a name="L-4"></a>$(&quot;textarea&quot;).val(&quot;This is a test.&quot;); </span><span id="L-5"><a name="L-5"></a>$(&quot;select&quot;).each(function(){$(this).children().last().attr(&quot;selected&quot;,&quot;selected&quot;);}); </span><span id="L-6"><a name="L-6"></a>$(&quot;input[type=&#39;checkbox&#39;]&quot;).attr(&#39;checked&#39;, true); </span></pre></div> </td></tr></table>
"dummy info", debugging, forms, test, testing

Python 3

hork

1
2
3
def hork(derp):
    for breed in ("poodle", "terrier", "beagle"):
        yield breed * derp
https://snipt.net/embed/20020b393edd5664fdac71217ad2f57c/
https://snipt.net/raw/20020b393edd5664fdac71217ad2f57c/
20020b393edd5664fdac71217ad2f57c
python3
Python 3
3
2016-12-09T04:50:48
True
False
False
/api/public/snipt/26883/
hork
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">def</span> <span class="nf">hork</span><span class="p">(</span><span class="n">derp</span><span class="p">):</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">for</span> <span class="n">breed</span> <span class="ow">in</span> <span class="p">(</span><span class="s2">&quot;poodle&quot;</span><span class="p">,</span> <span class="s2">&quot;terrier&quot;</span><span class="p">,</span> <span class="s2">&quot;beagle&quot;</span><span class="p">):</span> </span><span id="L-3"><a name="L-3"></a> <span class="k">yield</span> <span class="n">breed</span> <span class="o">*</span> <span class="n">derp</span> </span></pre></div> </td></tr></table>
testing
Copyrighted, illegal, or inappropriate content? Email [email protected].