<?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/single</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 09:00:50 GMT</pubDate>
<item>
<title>(PHP) PHP Convert Single Dimensional Array to Two Dimensional - kosinix</title>
<link>http://snipplr.com/view/67672/php-convert-single-dimensional-array-to-two-dimensional/</link>
<description><![CDATA[ <p>Function to convert a one dimensional array to two dimensional with option to specify how many columns. Returns two dimensional array on success or false on fail.</p> ]]></description>
<pubDate>Wed, 10 Oct 2012 11:47:20 GMT</pubDate>
<guid>http://snipplr.com/view/67672/php-convert-single-dimensional-array-to-two-dimensional/</guid>
</item>
<item>
<title>(jQuery) Clear all text fields on focus based on original value with single function - Huskie</title>
<link>http://snipplr.com/view/64478/clear-all-text-fields-on-focus-based-on-original-value-with-single-function/</link>
<description><![CDATA[ <p>Clear all text fields on focus based on original value with single function. The code checks for a 'title' attribute on each input with class 'text' and compares this to the current value of the field.</p> ]]></description>
<pubDate>Tue, 10 Apr 2012 19:29:59 GMT</pubDate>
<guid>http://snipplr.com/view/64478/clear-all-text-fields-on-focus-based-on-original-value-with-single-function/</guid>
</item>
<item>
<title>(jQuery) Flexible Site Layout With Resize Detection, now improved! - FatFolderDesigner</title>
<link>http://snipplr.com/view/60562/flexible-site-layout-with-resize-detection-now-improved/</link>
<description><![CDATA[ <p>I've previously posted this here: http://snipplr.com/view/59044/flexible-site-layout-with-resize-detection/

This new version is short and more efficient, plus it no longer shows 1 (harmless) error on launch. Works the same as last time, the sizable object has the size to add the class too all the sizable elements, so for this example if the screen is less that 450px it'll add the class "phone" to the body (and the other elements), and if it's larger than 750px, but not 1000px, it'll give it the tablet layout. More information about the script is at the link, questions/comments/concerns can be sent to be from here or the comments section at the link.</p> ]]></description>
<pubDate>Sat, 05 Nov 2011 11:02:52 GMT</pubDate>
<guid>http://snipplr.com/view/60562/flexible-site-layout-with-resize-detection-now-improved/</guid>
</item>
<item>
<title>(PHP) if is home if is page if is single else if - zealmurapa</title>
<link>http://snipplr.com/view/52475/if-is-home-if-is-page-if-is-single-else-if/</link>
<description><![CDATA[ <p>if is home if is page if is single else if</p> ]]></description>
<pubDate>Fri, 22 Apr 2011 19:09:07 GMT</pubDate>
<guid>http://snipplr.com/view/52475/if-is-home-if-is-page-if-is-single-else-if/</guid>
</item>
<item>
<title>(JavaScript) unobtrusive multiple event handlers on single element using jQuery - coprolit</title>
<link>http://snipplr.com/view/50919/unobtrusive-multiple-event-handlers-on-single-element-using-jquery/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 21 Mar 2011 23:30:03 GMT</pubDate>
<guid>http://snipplr.com/view/50919/unobtrusive-multiple-event-handlers-on-single-element-using-jquery/</guid>
</item>
<item>
<title>(C#) Single row from database - tonatiuh</title>
<link>http://snipplr.com/view/49284/single-row-from-database/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 20 Feb 2011 09:06:26 GMT</pubDate>
<guid>http://snipplr.com/view/49284/single-row-from-database/</guid>
</item>
<item>
<title>(PHP) Convert associative array to object (class) in a single line - dyteq</title>
<link>http://snipplr.com/view/45824/convert-associative-array-to-object-class-in-a-single-line/</link>
<description><![CDATA[ <p>This method is easy to write, but not very efficient, as you can imagine.</p> ]]></description>
<pubDate>Thu, 16 Dec 2010 23:47:08 GMT</pubDate>
<guid>http://snipplr.com/view/45824/convert-associative-array-to-object-class-in-a-single-line/</guid>
</item>
<item>
<title>(SQL) mysql dump single table - tribal</title>
<link>http://snipplr.com/view/43783/mysql-dump-single-table/</link>
<description><![CDATA[ <p>Backup a single table from a database</p> ]]></description>
<pubDate>Tue, 09 Nov 2010 04:04:18 GMT</pubDate>
<guid>http://snipplr.com/view/43783/mysql-dump-single-table/</guid>
</item>
<item>
<title>(Objective C) getting a single a double tap touch event - tenveer</title>
<link>http://snipplr.com/view/41563/getting-a-single-a-double-tap-touch-event/</link>
<description><![CDATA[ <p>execute different functions on single or double tap</p> ]]></description>
<pubDate>Tue, 05 Oct 2010 18:17:55 GMT</pubDate>
<guid>http://snipplr.com/view/41563/getting-a-single-a-double-tap-touch-event/</guid>
</item>
<item>
<title>(XSLT) Replace single quotes - iroybot</title>
<link>http://snipplr.com/view/35222/replace-single-quotes/</link>
<description><![CDATA[ <p>replacing single quotes with its (double-escaped) entity, for use of a text within xsl.</p> ]]></description>
<pubDate>Wed, 26 May 2010 06:41:16 GMT</pubDate>
<guid>http://snipplr.com/view/35222/replace-single-quotes/</guid>
</item>
<item>
<title>(SAS) CALL EXECUTE: Easy way to print or sort multiple files. - sarathannapareddy</title>
<link>http://snipplr.com/view/33199/call-execute-easy-way-to-print-or-sort-multiple-files/</link>
<description><![CDATA[ <p>When printing multiple files, or sorting multiple datasets, the traditional method is to write multiple steps as below.

Proc print data=libref.ae; var _all_; run;
Proc print data=libref.conmed; var _all_; run;
Proc print data=libref.demog; var _all_; run;
Proc print data=libref.lab; var _all_; run;
Proc print data=libref.medhist; var _all_; run; 
If you are like me who likes to simplify the traditional SAS code here is the tip. CALL EXECUTE comes to rescue here.</p> ]]></description>
<pubDate>Mon, 26 Apr 2010 19:42:48 GMT</pubDate>
<guid>http://snipplr.com/view/33199/call-execute-easy-way-to-print-or-sort-multiple-files/</guid>
</item>
<item>
<title>(PHP) Single post depending on the category - gd6d</title>
<link>http://snipplr.com/view/30949/single-post-depending-on-the-category/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Apr 2010 01:58:57 GMT</pubDate>
<guid>http://snipplr.com/view/30949/single-post-depending-on-the-category/</guid>
</item>
<item>
<title>(PHP) Single MySQL Result - iridium</title>
<link>http://snipplr.com/view/10880/single-mysql-result/</link>
<description><![CDATA[ <p>Simple but useful function for getting a single piece of data from a database and placing it straight into a variable.

Example:
$variable = one_result("SELECT columnOne FROM table WHERE columnTwo=whatever");

This would insert the value of columnOne where columnTwo is 'whatever' into $variable</p> ]]></description>
<pubDate>Sat, 03 Jan 2009 16:42:08 GMT</pubDate>
<guid>http://snipplr.com/view/10880/single-mysql-result/</guid>
</item>
<item>
<title>(Ruby) Easiest way to make HAML use double quotes instead of single quotes - noah</title>
<link>http://snipplr.com/view/10411/easiest-way-to-make-haml-use-double-quotes-instead-of-single-quotes/</link>
<description><![CDATA[ <p>Fortunately all it takes to make double quotes the global default for attribute wrappers in HAML is to change one line in the installed gem source.

If you're on a Mac, remember to sudo when you edit the source of an installed gem.</p> ]]></description>
<pubDate>Thu, 11 Dec 2008 23:08:05 GMT</pubDate>
<guid>http://snipplr.com/view/10411/easiest-way-to-make-haml-use-double-quotes-instead-of-single-quotes/</guid>
</item>
<item>
<title>(PHP) Manage Multiple WordPress Sites With One Database and One Code Base - jonhenshaw</title>
<link>http://snipplr.com/view/8999/manage-multiple-wordpress-sites-with-one-database-and-one-code-base/</link>
<description><![CDATA[ <p>This is a simple but powerful tweak to the wp-config.php file that will make it easy to run multiple websites using one database and codebase. Simply change "yourdomain.com" with your domain and that's it. Repeat that line for new domains.</p> ]]></description>
<pubDate>Tue, 14 Oct 2008 12:26:23 GMT</pubDate>
<guid>http://snipplr.com/view/8999/manage-multiple-wordpress-sites-with-one-database-and-one-code-base/</guid>
</item>
<item>
<title>(PHP) PIN Generator 1 line - tgpo</title>
<link>http://snipplr.com/view/8183/pin-generator-1-line/</link>
<description><![CDATA[ <p>This will print every number from 0000-9999.  Each number is comma separated.

The goal was not pretty / readable code, but to get all code on a single line.</p> ]]></description>
<pubDate>Thu, 04 Sep 2008 08:56:39 GMT</pubDate>
<guid>http://snipplr.com/view/8183/pin-generator-1-line/</guid>
</item>
<item>
<title>(Ruby) Rails active record single error patch - gdonald</title>
<link>http://snipplr.com/view/1243/rails-active-record-single-error-patch/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 27 Sep 2006 12:57:48 GMT</pubDate>
<guid>http://snipplr.com/view/1243/rails-active-record-single-error-patch/</guid>
</item>
</channel>
</rss>