Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

JavaScript

Intervalo de Tiempo

1
2
3
setInterval(
   function(){$('#right_scroll_index img').trigger("click")}, 
      6000);
https://snipt.net/embed/52c5dbefc93aba478583082f62fc6609/
https://snipt.net/raw/52c5dbefc93aba478583082f62fc6609/
52c5dbefc93aba478583082f62fc6609
js
JavaScript
4
2016-12-07T06:35:55
True
False
False
/api/public/snipt/36071/
intervalo-de-tiempo
<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="nx">setInterval</span><span class="p">(</span> </span><span id="L-2"><a name="L-2"></a> <span class="kd">function</span><span class="p">(){</span><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;#right_scroll_index img&#39;</span><span class="p">).</span><span class="nx">trigger</span><span class="p">(</span><span class="s2">&quot;click&quot;</span><span class="p">)},</span> </span><span id="L-3"><a name="L-3"></a> <span class="mi">6000</span><span class="p">);</span> </span></pre></div> </td></tr></table>
intervalo, set, tiempo, trigger

XML

CPU Frequency Set

sudo cpufreq-set -g powersave -c 1 && sudo cpufreq-set -g powersave -c 0
cpufreq-info -m -p -c 1 && cpufreq-info -m -p -c 0
https://snipt.net/embed/daffc351cb6ff96fb97eba5641aa5d31/
https://snipt.net/raw/daffc351cb6ff96fb97eba5641aa5d31/
daffc351cb6ff96fb97eba5641aa5d31
xml
XML
2
2016-11-25T12:29:09
True
False
False
/api/public/snipt/32851/
cpu-frequency-set
<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>sudo cpufreq-set -g powersave -c 1 <span class="err">&amp;&amp;</span> sudo cpufreq-set -g powersave -c 0 </span><span id="L-2"><a name="L-2"></a>cpufreq-info -m -p -c 1 <span class="err">&amp;&amp;</span> cpufreq-info -m -p -c 0 </span></pre></div> </td></tr></table>
cpu, frequency, set

JavaScript

select form set to empty

1
2
3
4
5
6
7
// This(id) form set to empty - (erasing all text)
function input_reset(id,default_param){
    var param_id = document.getElementById(id);
    if(param_id.value == default_param){
        param_id.value="";	
    }
}
https://snipt.net/embed/93a0d05bebba3454c7cdf0633efed8ba/
https://snipt.net/raw/93a0d05bebba3454c7cdf0633efed8ba/
93a0d05bebba3454c7cdf0633efed8ba
js
JavaScript
7
2016-12-03T07:15:46
True
False
False
/api/public/snipt/17912/
select-form-set-to-empty
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">// This(id) form set to empty - (erasing all text)</span> </span><span id="L-2"><a name="L-2"></a><span class="kd">function</span> <span class="nx">input_reset</span><span class="p">(</span><span class="nx">id</span><span class="p">,</span><span class="nx">default_param</span><span class="p">){</span> </span><span id="L-3"><a name="L-3"></a> <span class="kd">var</span> <span class="nx">param_id</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="nx">id</span><span class="p">);</span> </span><span id="L-4"><a name="L-4"></a> <span class="k">if</span><span class="p">(</span><span class="nx">param_id</span><span class="p">.</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">default_param</span><span class="p">){</span> </span><span id="L-5"><a name="L-5"></a> <span class="nx">param_id</span><span class="p">.</span><span class="nx">value</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a> <span class="p">}</span> </span><span id="L-7"><a name="L-7"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
empty, set

JavaScript

icon google

1
2
3
4
5
var blueIcon = new GIcon(G_DEFAULT_ICON);
blueIcon.image = "http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png";
markerOptions = { icon:blueIcon };
..
map.addOverlay(new GMarker(latlng, markerOptions));
https://snipt.net/embed/d36b7954ef453b07400fb00a7e417638/
https://snipt.net/raw/d36b7954ef453b07400fb00a7e417638/
d36b7954ef453b07400fb00a7e417638
js
JavaScript
6
2016-11-09T07:41:29
True
False
False
/api/public/snipt/13317/
icon-google
<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="kd">var</span> <span class="nx">blueIcon</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">GIcon</span><span class="p">(</span><span class="nx">G_DEFAULT_ICON</span><span class="p">);</span> </span><span id="L-2"><a name="L-2"></a><span class="nx">blueIcon</span><span class="p">.</span><span class="nx">image</span> <span class="o">=</span> <span class="s2">&quot;http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png&quot;</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="nx">markerOptions</span> <span class="o">=</span> <span class="p">{</span> <span class="nx">icon</span><span class="o">:</span><span class="nx">blueIcon</span> <span class="p">};</span> </span><span id="L-4"><a name="L-4"></a><span class="p">..</span> </span><span id="L-5"><a name="L-5"></a><span class="nx">map</span><span class="p">.</span><span class="nx">addOverlay</span><span class="p">(</span><span class="k">new</span> <span class="nx">GMarker</span><span class="p">(</span><span class="nx">latlng</span><span class="p">,</span> <span class="nx">markerOptions</span><span class="p">));</span> </span></pre></div> </td></tr></table>
google, icon, set
Copyrighted, illegal, or inappropriate content? Email [email protected].