Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

HTML

iFrame banner block with ad indicator

1
2
3
4
5
<!-- Adjust your banner size in the iFrame style tag - example uses 468x60 -->
<div style="border-top:1px dotted #ccc;padding:0;margin:0 auto;text-align:center;">
  <span style="color:#999;font-size:10px;">Advertisement</span>
  <iframe src="http://some.advertisement/link/" style="border:none;padding:0;margin:0 auto;overflow:hidden;width:468px;height:60px;display:block;" frameborder="0" scrolling="no"></iframe>
</div>
https://snipt.net/embed/f3417ee7d24a1d76d251213f7ca3f258/
https://snipt.net/raw/f3417ee7d24a1d76d251213f7ca3f258/
f3417ee7d24a1d76d251213f7ca3f258
html
HTML
5
2016-12-08T04:05:31
True
False
False
/api/public/snipt/18735/
iframe-banner-block-with-ad-indicator
<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="c">&lt;!-- Adjust your banner size in the iFrame style tag - example uses 468x60 --&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;border-top:1px dotted #ccc;padding:0;margin:0 auto;text-align:center;&quot;</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="p">&lt;</span><span class="nt">span</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;color:#999;font-size:10px;&quot;</span><span class="p">&gt;</span>Advertisement<span class="p">&lt;/</span><span class="nt">span</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="p">&lt;</span><span class="nt">iframe</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;http://some.advertisement/link/&quot;</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;border:none;padding:0;margin:0 auto;overflow:hidden;width:468px;height:60px;display:block;&quot;</span> <span class="na">frameborder</span><span class="o">=</span><span class="s">&quot;0&quot;</span> <span class="na">scrolling</span><span class="o">=</span><span class="s">&quot;no&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">iframe</span><span class="p">&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
banner, iframe

HTML

#140conf 468x60 Banner

1
2
3
4
<!-- #140conf LA Meetup banner code begin -->
<!-- 468x60 Banner -->
<div align="center"><a href="http://www.meetup.com/140conf/calendar/11868810/" target="_blank"><img src="http://makeitwork.com/images/140conf/468x60.jpg" border="0" width="468" height="60" alt="#140conf LA Meetup: December 14th, Register Now!"></a></div>
<!-- #140conf LA Meetup banner code end -->
https://snipt.net/embed/90a77ca56d31d214e8ba2017fa18fa41/
https://snipt.net/raw/90a77ca56d31d214e8ba2017fa18fa41/
90a77ca56d31d214e8ba2017fa18fa41
html
HTML
4
2016-12-07T10:03:28
True
False
False
/api/public/snipt/10510/
140conf-468x60-banner
<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="c">&lt;!-- #140conf LA Meetup banner code begin --&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="c">&lt;!-- 468x60 Banner --&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">align</span><span class="o">=</span><span class="s">&quot;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;http://www.meetup.com/140conf/calendar/11868810/&quot;</span> <span class="na">target</span><span class="o">=</span><span class="s">&quot;_blank&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;http://makeitwork.com/images/140conf/468x60.jpg&quot;</span> <span class="na">border</span><span class="o">=</span><span class="s">&quot;0&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;468&quot;</span> <span class="na">height</span><span class="o">=</span><span class="s">&quot;60&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;#140conf LA Meetup: December 14th, Register Now!&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><span id="L-4"><a name="L-4"></a><span class="c">&lt;!-- #140conf LA Meetup banner code end --&gt;</span> </span></pre></div> </td></tr></table>
#140conf, banner

HTML

#140conf 160x600 Banner

1
2
3
4
<!-- #140conf LA Meetup banner code begin -->
<!-- 160x600 Banner -->
<div align="center"><a href="http://www.meetup.com/140conf/calendar/11868810/" target="_blank"><img src="http://makeitwork.com/images/140conf/160x600.jpg" border="0" width="160" height="600" alt="#140conf LA Meetup: December 14th, Register Now!"></a></div>
<!-- #140conf LA Meetup banner code end -->
https://snipt.net/embed/69deac7845be82e5ecc3c0d70f360f7a/
https://snipt.net/raw/69deac7845be82e5ecc3c0d70f360f7a/
69deac7845be82e5ecc3c0d70f360f7a
html
HTML
4
2016-12-07T04:02:18
True
False
False
/api/public/snipt/10509/
140conf-160x600-banner
<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="c">&lt;!-- #140conf LA Meetup banner code begin --&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="c">&lt;!-- 160x600 Banner --&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">align</span><span class="o">=</span><span class="s">&quot;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;http://www.meetup.com/140conf/calendar/11868810/&quot;</span> <span class="na">target</span><span class="o">=</span><span class="s">&quot;_blank&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;http://makeitwork.com/images/140conf/160x600.jpg&quot;</span> <span class="na">border</span><span class="o">=</span><span class="s">&quot;0&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;160&quot;</span> <span class="na">height</span><span class="o">=</span><span class="s">&quot;600&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;#140conf LA Meetup: December 14th, Register Now!&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><span id="L-4"><a name="L-4"></a><span class="c">&lt;!-- #140conf LA Meetup banner code end --&gt;</span> </span></pre></div> </td></tr></table>
#140conf, banner

HTML

#140conf 125x125 Banner

1
2
3
4
<!-- #140conf LA Meetup banner code begin -->
<!-- 125x125 Banner -->
<div align="center"><a href="http://www.meetup.com/140conf/calendar/11868810/" target="_blank"><img src="http://makeitwork.com/images/140conf/125x125.jpg" border="0" width="125" height="125" alt="#140conf LA Meetup: December 14th, Register Now!"></a></div>
<!-- #140conf LA Meetup banner code end -->
https://snipt.net/embed/91bb9485b32b6e6bda21788eab87a6c3/
https://snipt.net/raw/91bb9485b32b6e6bda21788eab87a6c3/
91bb9485b32b6e6bda21788eab87a6c3
html
HTML
4
2016-12-07T04:02:22
True
False
False
/api/public/snipt/10508/
140conf-125x125-banner
<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="c">&lt;!-- #140conf LA Meetup banner code begin --&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="c">&lt;!-- 125x125 Banner --&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">align</span><span class="o">=</span><span class="s">&quot;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;http://www.meetup.com/140conf/calendar/11868810/&quot;</span> <span class="na">target</span><span class="o">=</span><span class="s">&quot;_blank&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;http://makeitwork.com/images/140conf/125x125.jpg&quot;</span> <span class="na">border</span><span class="o">=</span><span class="s">&quot;0&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;125&quot;</span> <span class="na">height</span><span class="o">=</span><span class="s">&quot;125&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;#140conf LA Meetup: December 14th, Register Now!&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><span id="L-4"><a name="L-4"></a><span class="c">&lt;!-- #140conf LA Meetup banner code end --&gt;</span> </span></pre></div> </td></tr></table>
#140conf, banner

HTML

#140conf 120x240 Banner

1
2
3
4
<!-- #140conf LA Meetup banner code begin -->
<!-- 120x240 Banner -->
<div align="center"><a href="http://www.meetup.com/140conf/calendar/11868810/" target="_blank"><img src="http://makeitwork.com/images/140conf/120x240.jpg" border="0" width="120" height="240" alt="#140conf LA Meetup: December 14th, Register Now!"></a></div>
<!-- #140conf LA Meetup banner code end -->
https://snipt.net/embed/6ed0ab987d8b96cc8ae1a1a6688525f8/
https://snipt.net/raw/6ed0ab987d8b96cc8ae1a1a6688525f8/
6ed0ab987d8b96cc8ae1a1a6688525f8
html
HTML
4
2016-12-08T01:07:51
True
False
False
/api/public/snipt/10477/
140conf-120x240-banner
<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="c">&lt;!-- #140conf LA Meetup banner code begin --&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="c">&lt;!-- 120x240 Banner --&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">align</span><span class="o">=</span><span class="s">&quot;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;http://www.meetup.com/140conf/calendar/11868810/&quot;</span> <span class="na">target</span><span class="o">=</span><span class="s">&quot;_blank&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;http://makeitwork.com/images/140conf/120x240.jpg&quot;</span> <span class="na">border</span><span class="o">=</span><span class="s">&quot;0&quot;</span> <span class="na">width</span><span class="o">=</span><span class="s">&quot;120&quot;</span> <span class="na">height</span><span class="o">=</span><span class="s">&quot;240&quot;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&quot;#140conf LA Meetup: December 14th, Register Now!&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><span id="L-4"><a name="L-4"></a><span class="c">&lt;!-- #140conf LA Meetup banner code end --&gt;</span> </span></pre></div> </td></tr></table>
#140conf, banner

Bash

Show an autoupdating clock in the console

1
2
3
4
5
6
7
8
#!/bin/bash

while true
do
  clear
  banner "Exact time" " `date | awk '{ print $4 }'`" "`date | awk '{ print $3$2" "$6 }'`"
  sleep 1
done
https://snipt.net/embed/b7b7737db23277e40d668c6f75a93df2/
https://snipt.net/raw/b7b7737db23277e40d668c6f75a93df2/
b7b7737db23277e40d668c6f75a93df2
bash
Bash
8
2016-12-08T04:06:09
True
False
False
/api/public/snipt/4956/
show-an-autoupdating-clock-in-the-console
<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="ch">#!/bin/bash</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="k">while</span> <span class="nb">true</span> </span><span id="L-4"><a name="L-4"></a><span class="k">do</span> </span><span id="L-5"><a name="L-5"></a> clear </span><span id="L-6"><a name="L-6"></a> banner <span class="s2">&quot;Exact time&quot;</span> <span class="s2">&quot; `date | awk &#39;{ print </span><span class="nv">$4</span><span class="s2"> }&#39;`&quot;</span> <span class="s2">&quot;`date | awk &#39;{ print </span><span class="nv">$3$2</span><span class="s2">&quot;</span> <span class="s2">&quot;</span><span class="nv">$6</span><span class="s2"> }&#39;`&quot;</span> </span><span id="L-7"><a name="L-7"></a> sleep 1 </span><span id="L-8"><a name="L-8"></a><span class="k">done</span> </span></pre></div> </td></tr></table>
awk, banner, bash, clock, date
Copyrighted, illegal, or inappropriate content? Email [email protected].