snipt

Ctrl+h for KB shortcuts
Notice: Snipt is moving away from free accounts on May 1st, 2014. Read more about the transition here.
#132125

Text only

Mobile App Development, iPhone Application Development Company AgileInfoways.com

1
2
3
4
5
Agile Infoways is a leading mobile app development company with over 600 apps built on iPhone, iPad and Android. Get free mobile app development quotes by http://www.agileinfoways.com/contact-us 

Our mobile application development services help businesses to mobilize their ... With a yearly rise in demand for Iphone apps, our developers and designers.

Find the feasible solutions for your business needs from a quality iPhone application development company who handle small to large projects.
https://snipt.net/embed/503bf95dc6b3e2d30771709de3c995e2/
https://snipt.net/raw/503bf95dc6b3e2d30771709de3c995e2/
503bf95dc6b3e2d30771709de3c995e2
text
Text only
5
2014-04-23T06:31:46
True
True
Apr 23, 2014 at 03:11 AM
/api/public/snipt/132125/
mobile-app-development-iphone-application-development-company-agileinfowayscom
<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 id="L-1"><a name="L-1"></a>Agile Infoways is a leading mobile app development company with over 600 apps built on iPhone, iPad and Android. Get free mobile app development quotes by http://www.agileinfoways.com/contact-us </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Our mobile application development services help businesses to mobilize their ... With a yearly rise in demand for Iphone apps, our developers and designers. </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>Find the feasible solutions for your business needs from a quality iPhone application development company who handle small to large projects. </span></pre></div> </td></tr></table>
"hire wordpress", agileinfoways.com, as3, bash, c++, css, django, drupal, git, html, java, javascript, jquery, js, linux, mysql, php, python, ruby, sql, wordpress
#129781

JavaScript

Sleep function

1
2
3
4
5
6
7
8
function sleep(milliseconds) {
  var start = new Date().getTime();
  for (var i = 0; i < 1e7; i++) {
    if ((new Date().getTime() - start) > milliseconds){
      break;
    }
  }
}
https://snipt.net/embed/96d28bd420f3f3b132986ec996fbad67/
https://snipt.net/raw/96d28bd420f3f3b132986ec996fbad67/
96d28bd420f3f3b132986ec996fbad67
js
JavaScript
8
2014-04-18T20:26:57
True
False
Apr 14, 2014 at 05:21 AM
/api/public/snipt/129781/
sleep-function
<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 id="L-1"><a name="L-1"></a><span class="kd">function</span> <span class="nx">sleep</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">)</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="kd">var</span> <span class="nx">start</span> <span class="o">=</span> <span class="k">new</span> <span class="nb">Date</span><span class="p">().</span><span class="nx">getTime</span><span class="p">();</span> </span><span id="L-3"><a name="L-3"></a> <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="mi">1</span><span class="nx">e7</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</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="k">new</span> <span class="nb">Date</span><span class="p">().</span><span class="nx">getTime</span><span class="p">()</span> <span class="o">-</span> <span class="nx">start</span><span class="p">)</span> <span class="o">&gt;</span> <span class="nx">milliseconds</span><span class="p">){</span> </span><span id="L-5"><a name="L-5"></a> <span class="k">break</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><span id="L-8"><a name="L-8"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
javascript, sleep
#126750

JavaScript

replace A HREF to SPAN

1
2
3
$('.head-recall').each(function () {
	$(this).replaceWith('<span>' + $(this).html() + '</span>');
});
https://snipt.net/embed/365826b2618249f8163f4b9d7bef8984/
https://snipt.net/raw/365826b2618249f8163f4b9d7bef8984/
365826b2618249f8163f4b9d7bef8984
js
JavaScript
3
2014-04-22T08:25:21
True
False
Apr 02, 2014 at 09:26 AM
/api/public/snipt/126750/
replace-a-href-to-span
<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 id="L-1"><a name="L-1"></a><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;.head-recall&#39;</span><span class="p">).</span><span class="nx">each</span><span class="p">(</span><span class="kd">function</span> <span class="p">()</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">replaceWith</span><span class="p">(</span><span class="s1">&#39;&lt;span&gt;&#39;</span> <span class="o">+</span> <span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">html</span><span class="p">()</span> <span class="o">+</span> <span class="s1">&#39;&lt;/span&gt;&#39;</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>
javascript, js