<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/loop</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 12:48:19 GMT</pubDate>
<item>
<title>(PHP) Wordpress basic loop - oneupdzn</title>
<link>http://snipplr.com/view/71043/wordpress-basic-loop/</link>
<description><![CDATA[ <p>Basic wordpress loop.</p> ]]></description>
<pubDate>Sun, 05 May 2013 00:46:38 GMT</pubDate>
<guid>http://snipplr.com/view/71043/wordpress-basic-loop/</guid>
</item>
<item>
<title>(CSS) LESS loop to generate classes - BuschFunker</title>
<link>http://snipplr.com/view/70819/less-loop-to-generate-classes/</link>
<description><![CDATA[ <p>Generate numbered classes and apply variable mixins.
Base from [http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/](http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/)</p> ]]></description>
<pubDate>Wed, 17 Apr 2013 01:50:56 GMT</pubDate>
<guid>http://snipplr.com/view/70819/less-loop-to-generate-classes/</guid>
</item>
<item>
<title>(DOS Batch) Batch code to process files with a certain filename in a directory - stianlagstad</title>
<link>http://snipplr.com/view/70562/batch-code-to-process-files-with-a-certain-filename-in-a-directory/</link>
<description><![CDATA[ <p>This will loop through files in somefolder with the extension .c, print out the filename and compile the files.</p> ]]></description>
<pubDate>Wed, 27 Mar 2013 04:08:03 GMT</pubDate>
<guid>http://snipplr.com/view/70562/batch-code-to-process-files-with-a-certain-filename-in-a-directory/</guid>
</item>
<item>
<title>(Perl) Perl recursive loop symbolic link final destination using Unix readlink command - symsec</title>
<link>http://snipplr.com/view/67842/perl-recursive-loop-symbolic-link-final-destination-using-unix-readlink-command/</link>
<description><![CDATA[ <p>Snippet obtained from Stackoverflow courtesy of [Loki Astari](http://stackoverflow.com/a/130428)</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 15:23:36 GMT</pubDate>
<guid>http://snipplr.com/view/67842/perl-recursive-loop-symbolic-link-final-destination-using-unix-readlink-command/</guid>
</item>
<item>
<title>(SQL) Iterating through wihle loop in sql server like cursor - hairajeshk</title>
<link>http://snipplr.com/view/67673/iterating-through-wihle-loop-in-sql-server-like-cursor/</link>
<description><![CDATA[ <p>http://support.microsoft.com/kb/111401</p> ]]></description>
<pubDate>Wed, 10 Oct 2012 16:05:25 GMT</pubDate>
<guid>http://snipplr.com/view/67673/iterating-through-wihle-loop-in-sql-server-like-cursor/</guid>
</item>
<item>
<title>(PHP) WORDPRESS - Get only titles from specific category - thewickedchemist</title>
<link>http://snipplr.com/view/65228/wordpress--get-only-titles-from-specific-category/</link>
<description><![CDATA[ <p>Takes titles from a certain category and lists them in an unordered list.</p> ]]></description>
<pubDate>Mon, 28 May 2012 08:36:54 GMT</pubDate>
<guid>http://snipplr.com/view/65228/wordpress--get-only-titles-from-specific-category/</guid>
</item>
<item>
<title>(Java) While Loop - thethirdtwin</title>
<link>http://snipplr.com/view/64877/while-loop/</link>
<description><![CDATA[ <p>This is a basic java while loop.</p> ]]></description>
<pubDate>Wed, 16 May 2012 08:37:26 GMT</pubDate>
<guid>http://snipplr.com/view/64877/while-loop/</guid>
</item>
<item>
<title>(HTML) video - paul0078</title>
<link>http://snipplr.com/view/64570/video/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 15 Apr 2012 20:11:10 GMT</pubDate>
<guid>http://snipplr.com/view/64570/video/</guid>
</item>
<item>
<title>(HTML) audio - paul0078</title>
<link>http://snipplr.com/view/64569/audio/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 15 Apr 2012 20:11:10 GMT</pubDate>
<guid>http://snipplr.com/view/64569/audio/</guid>
</item>
<item>
<title>(JavaScript) Alternative for \"for...in\" loop - hellowouter</title>
<link>http://snipplr.com/view/64239/alternative-for-forin-loop/</link>
<description><![CDATA[ <p>We are setting up two variables. The assignment in the middle part of the for loop is also tested for truthfulness — if it succeeds, the loop continues. Since i is incremented each time, items from the array will be assigned to item in sequential order. The loop stops when a "falsy" item is found (such as undefined).

Note that this trick should only be used for arrays which you know do not contain "falsy" values (arrays of objects or DOM nodes for example). If you are iterating over numeric data that might include a 0 or string data that might include the empty string you should use a standard for loop.

Note that if someone added new properties to Array.prototype, using a "for...in" loop is no option since the loop will also iterate over the new prototype properties.</p> ]]></description>
<pubDate>Fri, 30 Mar 2012 19:10:51 GMT</pubDate>
<guid>http://snipplr.com/view/64239/alternative-for-forin-loop/</guid>
</item>
<item>
<title>(JavaScript) Javascript Select Box - Age Loop - JonnyCraze</title>
<link>http://snipplr.com/view/63935/javascript-select-box--age-loop/</link>
<description><![CDATA[ <p>I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.</p> ]]></description>
<pubDate>Thu, 15 Mar 2012 03:22:01 GMT</pubDate>
<guid>http://snipplr.com/view/63935/javascript-select-box--age-loop/</guid>
</item>
<item>
<title>(PHP) EE Static Loop - ryarwood</title>
<link>http://snipplr.com/view/62886/ee-static-loop/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 30 Jan 2012 08:47:44 GMT</pubDate>
<guid>http://snipplr.com/view/62886/ee-static-loop/</guid>
</item>
<item>
<title>(PL/SQL) MSSQL Cursor - simi23</title>
<link>http://snipplr.com/view/62482/mssql-cursor/</link>
<description><![CDATA[ <p>basic definition for a cursor in MSSQL</p> ]]></description>
<pubDate>Wed, 11 Jan 2012 22:52:59 GMT</pubDate>
<guid>http://snipplr.com/view/62482/mssql-cursor/</guid>
</item>
<item>
<title>(PHP) Loop through Wordpress 3.0+ custom post type taxonomies - dolbex</title>
<link>http://snipplr.com/view/62409/loop-through-wordpress-30-custom-post-type-taxonomies/</link>
<description><![CDATA[ <p>Wordpress 3.3 custom post type query that will get all of the taxonomies, loop through them, and output the posts from each.</p> ]]></description>
<pubDate>Mon, 09 Jan 2012 07:06:44 GMT</pubDate>
<guid>http://snipplr.com/view/62409/loop-through-wordpress-30-custom-post-type-taxonomies/</guid>
</item>
<item>
<title>(PHP) Prev/Next wordpress loop links - xcsteve99</title>
<link>http://snipplr.com/view/62105/prevnext-wordpress-loop-links/</link>
<description><![CDATA[ <p>Add this within the loop:</p> ]]></description>
<pubDate>Fri, 23 Dec 2011 12:11:49 GMT</pubDate>
<guid>http://snipplr.com/view/62105/prevnext-wordpress-loop-links/</guid>
</item>
<item>
<title>(PHP) Run a loop outside WordPress installation - stephcode</title>
<link>http://snipplr.com/view/61312/run-a-loop-outside-wordpress-installation/</link>
<description><![CDATA[ <p>Put the following outside WP</p> ]]></description>
<pubDate>Wed, 30 Nov 2011 04:58:07 GMT</pubDate>
<guid>http://snipplr.com/view/61312/run-a-loop-outside-wordpress-installation/</guid>
</item>
<item>
<title>(Bash) infinitive loop - thoaionline</title>
<link>http://snipplr.com/view/61118/infinitive-loop/</link>
<description><![CDATA[ <p>infinitive loop in bash, useful if you want to have a self-healing process</p> ]]></description>
<pubDate>Wed, 23 Nov 2011 16:59:01 GMT</pubDate>
<guid>http://snipplr.com/view/61118/infinitive-loop/</guid>
</item>
<item>
<title>(PHP) WP Static Index Page w/ Blog - xcsteve99</title>
<link>http://snipplr.com/view/61023/wp-static-index-page-w-blog/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 21 Nov 2011 14:25:16 GMT</pubDate>
<guid>http://snipplr.com/view/61023/wp-static-index-page-w-blog/</guid>
</item>
<item>
<title>(PHP) WP Restrict Category Types in Main Post - ryarwood</title>
<link>http://snipplr.com/view/60463/wp-restrict-category-types-in-main-post/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Nov 2011 05:11:26 GMT</pubDate>
<guid>http://snipplr.com/view/60463/wp-restrict-category-types-in-main-post/</guid>
</item>
<item>
<title>(Other) Paul Irish tip on setTimeout - athanassiadis</title>
<link>http://snipplr.com/view/58563/paul-irish-tip-on-settimeout/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Sep 2011 23:58:16 GMT</pubDate>
<guid>http://snipplr.com/view/58563/paul-irish-tip-on-settimeout/</guid>
</item>
</channel>
</rss>