<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - Jamie</title>
<link>http://snipplr.com/users/Jamie</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 17:39:10 GMT</pubDate>
<item>
<title>(PHP) SlideDeck 2 After get hook-in for overriding deck options</title>
<link>http://snipplr.com/view/66597/slidedeck-2-after-get-hookin-for-overriding-deck-options/</link>
<description><![CDATA[ <p>Allows a SlideDeck user to hook into the options array after the SlideDeck is fetched from the database. Options can then be modified based on the request.</p> ]]></description>
<pubDate>Thu, 09 Aug 2012 03:13:52 GMT</pubDate>
<guid>http://snipplr.com/view/66597/slidedeck-2-after-get-hookin-for-overriding-deck-options/</guid>
</item>
<item>
<title>(HTML) iFrame Vimeo Hack for SlideDeck 2</title>
<link>http://snipplr.com/view/66243/iframe-vimeo-hack-for-slidedeck-2/</link>
<description><![CDATA[ <p>The first HTML slide contains a hack that will grab the current SlideDeck object and then bind an onComplete callback to append '?autoplay=1' to the iFrame URL when the deck lands on a slide that has an iFrame in it.

The other HTML slides have Vimeo iFrames in them that are treated the same when the deck animates to them as well.

The JavaScript is only necessary in one of the slides.</p> ]]></description>
<pubDate>Fri, 20 Jul 2012 14:30:14 GMT</pubDate>
<guid>http://snipplr.com/view/66243/iframe-vimeo-hack-for-slidedeck-2/</guid>
</item>
<item>
<title>(MySQL) MySQL Time Ago function</title>
<link>http://snipplr.com/view/65651/mysql-time-ago-function/</link>
<description><![CDATA[ <p>Retrieves a relative time in a MySQL Query</p> ]]></description>
<pubDate>Sat, 16 Jun 2012 00:56:15 GMT</pubDate>
<guid>http://snipplr.com/view/65651/mysql-time-ago-function/</guid>
</item>
<item>
<title>(JavaScript) URl Decode For JavaScript</title>
<link>http://snipplr.com/view/59982/url-decode-for-javascript/</link>
<description><![CDATA[ <p>I found some cases where JavaScript won't properly handle the Plus symbol (+)</p> ]]></description>
<pubDate>Thu, 20 Oct 2011 07:37:25 GMT</pubDate>
<guid>http://snipplr.com/view/59982/url-decode-for-javascript/</guid>
</item>
<item>
<title>(MySQL) Save a MySQL Query as a Tab or Comma separated file</title>
<link>http://snipplr.com/view/57838/save-a-mysql-query-as-a-tab-or-comma-separated-file/</link>
<description><![CDATA[ <p>Simple example of how you can output a query as</p> ]]></description>
<pubDate>Tue, 16 Aug 2011 01:16:00 GMT</pubDate>
<guid>http://snipplr.com/view/57838/save-a-mysql-query-as-a-tab-or-comma-separated-file/</guid>
</item>
<item>
<title>(JavaScript) Adaptation of Prototype\'s Truncate function</title>
<link>http://snipplr.com/view/57128/adaptation-of-prototypes-truncate-function/</link>
<description><![CDATA[ <p>I just ripped it from Prototype for use in my jQuery based code.</p> ]]></description>
<pubDate>Tue, 26 Jul 2011 00:41:50 GMT</pubDate>
<guid>http://snipplr.com/view/57128/adaptation-of-prototypes-truncate-function/</guid>
</item>
<item>
<title>(JavaScript) Clear Text Field of its default value, and return the original value</title>
<link>http://snipplr.com/view/46089/clear-text-field-of-its-default-value-and-return-the-original-value/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 24 Dec 2010 10:10:08 GMT</pubDate>
<guid>http://snipplr.com/view/46089/clear-text-field-of-its-default-value-and-return-the-original-value/</guid>
</item>
<item>
<title>(MySQL) Find All SlideDeck Slides from the wp_posts Table</title>
<link>http://snipplr.com/view/45699/find-all-slidedeck-slides-from-the-wpposts-table/</link>
<description><![CDATA[ <p>This SQL query will find all the SlideDeck related entries in your WordPress database.</p> ]]></description>
<pubDate>Tue, 14 Dec 2010 12:15:33 GMT</pubDate>
<guid>http://snipplr.com/view/45699/find-all-slidedeck-slides-from-the-wpposts-table/</guid>
</item>
<item>
<title>(HTML) Demo SlideDeck HTML &amp;amp; JavaScript Code for Brian</title>
<link>http://snipplr.com/view/45698/demo-slidedeck-html--javascript-code-for-brian/</link>
<description><![CDATA[ <p>I'm using the callback functions to turn autoPlay on and off.</p> ]]></description>
<pubDate>Tue, 14 Dec 2010 12:01:34 GMT</pubDate>
<guid>http://snipplr.com/view/45698/demo-slidedeck-html--javascript-code-for-brian/</guid>
</item>
<item>
<title>(MySQL) MySQL Join on NOT Condition</title>
<link>http://snipplr.com/view/44005/mysql-join-on-not-condition/</link>
<description><![CDATA[ <p>This was a strange case where I had to select all the items that were NOT assigned to a user. The data structure assumes that there is a 1 to 1 relationship between a user and an item. This is a simplified version of the query, but it's one of those queries that takes a while to figure out.</p> ]]></description>
<pubDate>Fri, 12 Nov 2010 10:31:26 GMT</pubDate>
<guid>http://snipplr.com/view/44005/mysql-join-on-not-condition/</guid>
</item>
<item>
<title>(CSS) Sample Print Stylesheet for SlideDeck</title>
<link>http://snipplr.com/view/43916/sample-print-stylesheet-for-slidedeck/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Nov 2010 04:09:35 GMT</pubDate>
<guid>http://snipplr.com/view/43916/sample-print-stylesheet-for-slidedeck/</guid>
</item>
<item>
<title>(PHP) Photoshop Like "Offset" Function</title>
<link>http://snipplr.com/view/42862/photoshop-like-offset-function/</link>
<description><![CDATA[ <p>This code war written for a project I'm working on where a map of the world may need to be offset to center the view on specific areas. I'm also using it as a part of an iterative blur function to prevent seams from the blur operation.

I would like to eventually tweak the function to receive both X &amp; Y values for the offset command, but am a tad lazy right now on this fine Sunday afternoon.</p> ]]></description>
<pubDate>Mon, 25 Oct 2010 07:17:03 GMT</pubDate>
<guid>http://snipplr.com/view/42862/photoshop-like-offset-function/</guid>
</item>
<item>
<title>(jQuery) Automatically Append Vertical Nav to SlideDeck Spines</title>
<link>http://snipplr.com/view/42576/automatically-append-vertical-nav-to-slidedeck-spines/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 20 Oct 2010 02:39:07 GMT</pubDate>
<guid>http://snipplr.com/view/42576/automatically-append-vertical-nav-to-slidedeck-spines/</guid>
</item>
<item>
<title>(CSS) Make SlideDeck For WordPress Vertical Nav Bigger</title>
<link>http://snipplr.com/view/41806/make-slidedeck-for-wordpress-vertical-nav-bigger/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 08 Oct 2010 04:25:57 GMT</pubDate>
<guid>http://snipplr.com/view/41806/make-slidedeck-for-wordpress-vertical-nav-bigger/</guid>
</item>
<item>
<title>(PHP) Filter WordPress Search Results By Post Type</title>
<link>http://snipplr.com/view/39496/filter-wordpress-search-results-by-post-type/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 25 Aug 2010 06:39:48 GMT</pubDate>
<guid>http://snipplr.com/view/39496/filter-wordpress-search-results-by-post-type/</guid>
</item>
<item>
<title>(PHP) Round Large Numbers to a Letter Abbreviation eg: 25,000 to 25K</title>
<link>http://snipplr.com/view/39450/round-large-numbers-to-a-letter-abbreviation-eg-25000-to-25k/</link>
<description><![CDATA[ <p>A little restrictive, but should work for simple implementations. I\'m using this to replicate Facebook\'s \"35K people like this\" button format.\r\nThe original code is included below my modification.</p> ]]></description>
<pubDate>Tue, 24 Aug 2010 10:10:44 GMT</pubDate>
<guid>http://snipplr.com/view/39450/round-large-numbers-to-a-letter-abbreviation-eg-25000-to-25k/</guid>
</item>
<item>
<title>(PHP) Get WordPress Tags/Categories for a Custom Post Type</title>
<link>http://snipplr.com/view/39446/get-wordpress-tagscategories-for-a-custom-post-type/</link>
<description><![CDATA[ <p>Returns an HTML string of taxonomy terms associated with a post and given taxonomy. Terms are linked to their respective term listing pages.\r\n\r\nThis is for when a custom taxonomy is registered for a custom post type.</p> ]]></description>
<pubDate>Tue, 24 Aug 2010 04:57:33 GMT</pubDate>
<guid>http://snipplr.com/view/39446/get-wordpress-tagscategories-for-a-custom-post-type/</guid>
</item>
<item>
<title>(PHP) Get The Current Page Template Name in WordPress</title>
<link>http://snipplr.com/view/39334/get-the-current-page-template-name-in-wordpress/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 20 Aug 2010 04:00:44 GMT</pubDate>
<guid>http://snipplr.com/view/39334/get-the-current-page-template-name-in-wordpress/</guid>
</item>
<item>
<title>(PHP) WordPress after_setup_theme Action &amp;amp; Function</title>
<link>http://snipplr.com/view/39204/wordpress-aftersetuptheme-action--function/</link>
<description><![CDATA[ <p>This may be necessary to properly add theme support for multiple menus.</p> ]]></description>
<pubDate>Wed, 18 Aug 2010 04:06:53 GMT</pubDate>
<guid>http://snipplr.com/view/39204/wordpress-aftersetuptheme-action--function/</guid>
</item>
<item>
<title>(jQuery) Remove Encoded Spans From SlideDeck Title</title>
<link>http://snipplr.com/view/39071/remove-encoded-spans-from-slidedeck-title/</link>
<description><![CDATA[ <p>Highly specific code to hack-patch an issue with the FEE WordPress Plugin</p> ]]></description>
<pubDate>Sat, 14 Aug 2010 08:23:13 GMT</pubDate>
<guid>http://snipplr.com/view/39071/remove-encoded-spans-from-slidedeck-title/</guid>
</item>
</channel>
</rss>