Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

HTML

Javascript: close window

1
2
3
<div onClick="javascript:window.close();">
    CLOSE WINDOW
</div>
https://snipt.net/embed/c6d7468a5cc402de6678671ca5f2b783/
https://snipt.net/raw/c6d7468a5cc402de6678671ca5f2b783/
c6d7468a5cc402de6678671ca5f2b783
html
HTML
4
2016-12-03T21:55:27
True
False
True
Oct 17, 2015 at 07:08 AM
/api/public/snipt/141762/
javascript-close-window
<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="p">&lt;</span><span class="nt">div</span> <span class="na">onClick</span><span class="o">=</span><span class="s">&quot;javascript:window.close();&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a> CLOSE WINDOW </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
How, Javascript, a, close, in, to, windows

Text only

htaccess change all files from .html to .php

RewriteEngine on
RedirectMatch 301 (.*)\.html$ $1.php
https://snipt.net/embed/30c204ead09242223505f6b10e45ef4c/
https://snipt.net/raw/30c204ead09242223505f6b10e45ef4c/
30c204ead09242223505f6b10e45ef4c
text
Text only
2
2016-12-02T10:17:27
True
False
False
/api/public/snipt/137717/
htaccess-change-all-files-from-html-to-php-848ce893
<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>RewriteEngine on </span><span id="L-2"><a name="L-2"></a>RedirectMatch 301 (.*)\.html$ $1.php </span></pre></div> </td></tr></table>
html, php, to

Text only

Raster to Vector Conversion

1
2
3
Vector solution provides Vector Arts through vectorization which converts Raster image into Vector image. Vector images are far more superior to raster images to be used in web.The reason for this is that while a bitmap image can look great on the screen, which usually has a resolution of about 72 pixels/dots per inch (DPI), it will normally have to be scaled by a factor of 8 or more when printed since modern printers routinely produce resolutions of 600 pixels/dots per inch. Vector images can handle this type of scaling without any problems while bitmap images struggle with it. Many forms of printing require vector input in order to work- flex printing and embroidery. Vector images are also used on the web for flash animations.

http://www.vectorsolution.org/#!/
https://snipt.net/embed/c350d596943c5ec74909fc94104c3d22/
https://snipt.net/raw/c350d596943c5ec74909fc94104c3d22/
c350d596943c5ec74909fc94104c3d22
text
Text only
3
2016-12-01T11:51:10
True
False
True
Aug 08, 2014 at 08:59 AM
/api/public/snipt/136067/
raster-to-vector-conversion-79886190
<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>Vector solution provides Vector Arts through vectorization which converts Raster image into Vector image. Vector images are far more superior to raster images to be used in web.The reason for this is that while a bitmap image can look great on the screen, which usually has a resolution of about 72 pixels/dots per inch (DPI), it will normally have to be scaled by a factor of 8 or more when printed since modern printers routinely produce resolutions of 600 pixels/dots per inch. Vector images can handle this type of scaling without any problems while bitmap images struggle with it. Many forms of printing require vector input in order to work- flex printing and embroidery. Vector images are also used on the web for flash animations. </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>http://www.vectorsolution.org/#!/ </span></pre></div> </td></tr></table>
Conversion vector, EPS, Raster, Vector, conversion JPG, to, vector PDF

Java

List to Array

String[] items = list.toArray(new String[list.size()]);
https://snipt.net/embed/0a32d4c44a721ff2049673fb62713578/
https://snipt.net/raw/0a32d4c44a721ff2049673fb62713578/
0a32d4c44a721ff2049673fb62713578
java
Java
1
2016-12-06T13:18:57
True
False
False
Oct 18, 2013 at 04:05 AM
/api/public/snipt/88445/
list-to-array-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="n">String</span><span class="o">[]</span> <span class="n">items</span> <span class="o">=</span> <span class="n">list</span><span class="o">.</span><span class="na">toArray</span><span class="o">(</span><span class="k">new</span> <span class="n">String</span><span class="o">[</span><span class="n">list</span><span class="o">.</span><span class="na">size</span><span class="o">()]);</span> </span></pre></div> </td></tr></table>
array, list, to

Bash

SCP file from local to remote server over ssh using pem key

scp -i /path/to/key.pem /path/to/file.jpg <username>@<server ip address>:/path/to/place/file
https://snipt.net/embed/e1839c5e3d32b62b6ee527d714e4b2f8/
https://snipt.net/raw/e1839c5e3d32b62b6ee527d714e4b2f8/
e1839c5e3d32b62b6ee527d714e4b2f8
bash
Bash
1
2016-12-07T09:04:52
True
False
False
/api/public/snipt/87287/
scp-file-from-local-to-remote-server-over-ssh-using-pem-key
<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>scp -i /path/to/key.pem /path/to/file.jpg &lt;username&gt;@&lt;server ip address&gt;:/path/to/place/file </span></pre></div> </td></tr></table>
copy, file, local, remote, scp, server, ssh, to
Copyrighted, illegal, or inappropriate content? Email [email protected].