Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

CSS

LightBox 2 en Foundation

1
2
3
.lb-image{
	max-width:inherit;
}
https://snipt.net/embed/702f5f77c5ff8b8b185e18ef801b5734/
https://snipt.net/raw/702f5f77c5ff8b8b185e18ef801b5734/
702f5f77c5ff8b8b185e18ef801b5734
css
CSS
3
2016-12-02T08:03:31
True
False
False
Feb 25, 2014 at 03:53 AM
/api/public/snipt/116539/
lightbox-2-en-foundation
<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="nc">.lb-image</span><span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nb">max-width</span><span class="o">:</span><span class="nb">inherit</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, foundation, hack-css, lightbox2, trick

Java

java down to; for trick

1
2
3
4
for (int i = 20; i --> 0;) // "20 down to 0"
{
//...
}
https://snipt.net/embed/a4243d5782848350224c71102fad44ac/
https://snipt.net/raw/a4243d5782848350224c71102fad44ac/
a4243d5782848350224c71102fad44ac
java
Java
4
2016-12-02T14:12:17
True
False
False
/api/public/snipt/17584/
java-down-to-for-trick
<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><span class="k">for</span> <span class="o">(</span><span class="kt">int</span> <span class="n">i</span> <span class="o">=</span> <span class="mi">20</span><span class="o">;</span> <span class="n">i</span> <span class="o">--&gt;</span> <span class="mi">0</span><span class="o">;)</span> <span class="c1">// &quot;20 down to 0&quot;</span> </span><span id="L-2"><a name="L-2"></a><span class="o">{</span> </span><span id="L-3"><a name="L-3"></a><span class="c1">//...</span> </span><span id="L-4"><a name="L-4"></a><span class="o">}</span> </span></pre></div> </td></tr></table>
"down to", for, java, trick

Java

java confuse flow

1
2
3
4
5
6
7
8
    try
    {
      return;
    }
    finally
    {
      System.out.println("Bye!");
    }
https://snipt.net/embed/5d35ad9555fe472f2c6f27d5c94140da/
https://snipt.net/raw/5d35ad9555fe472f2c6f27d5c94140da/
5d35ad9555fe472f2c6f27d5c94140da
java
Java
8
2016-11-28T10:36:18
True
False
False
/api/public/snipt/17341/
java-confuse-flow
<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> <a href="#L-8">8</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">try</span> </span><span id="L-2"><a name="L-2"></a> <span class="o">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="k">return</span><span class="o">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="o">}</span> </span><span id="L-5"><a name="L-5"></a> <span class="k">finally</span> </span><span id="L-6"><a name="L-6"></a> <span class="o">{</span> </span><span id="L-7"><a name="L-7"></a> <span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span><span class="s">&quot;Bye!&quot;</span><span class="o">);</span> </span><span id="L-8"><a name="L-8"></a> <span class="o">}</span> </span></pre></div> </td></tr></table>
catch, exception, finally, flow, java, trick, try
Copyrighted, illegal, or inappropriate content? Email [email protected].