<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - chrisaiv</title>
<link>http://snipplr.com/users/chrisaiv</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 13:35:08 GMT</pubDate>
<item>
<title>(Bash) Common @openshift RHC commands</title>
<link>http://snipplr.com/view/71106/common-openshift-rhc-commands/</link>
<description><![CDATA[ <p>I use these commands all the time while dealing with @openshift. I figured it would make sense to spell them out.</p> ]]></description>
<pubDate>Thu, 09 May 2013 16:59:55 GMT</pubDate>
<guid>http://snipplr.com/view/71106/common-openshift-rhc-commands/</guid>
</item>
<item>
<title>(HTML) HTML: List of countries for a Dropdown menu</title>
<link>http://snipplr.com/view/70076/html-list-of-countries-for-a-dropdown-menu/</link>
<description><![CDATA[ <p>Country listings</p> ]]></description>
<pubDate>Sun, 24 Feb 2013 06:49:15 GMT</pubDate>
<guid>http://snipplr.com/view/70076/html-list-of-countries-for-a-dropdown-menu/</guid>
</item>
<item>
<title>(CSS) CSS: Retina display media query</title>
<link>http://snipplr.com/view/69359/css-retina-display-media-query/</link>
<description><![CDATA[ <p>I needed a quick way to target high-resolution graphics. Here was my final solution</p> ]]></description>
<pubDate>Sat, 05 Jan 2013 04:51:41 GMT</pubDate>
<guid>http://snipplr.com/view/69359/css-retina-display-media-query/</guid>
</item>
<item>
<title>(JavaScript) NodeJS: Server-side browser detection</title>
<link>http://snipplr.com/view/69258/nodejs-serverside-browser-detection/</link>
<description><![CDATA[ <p>Browser detection before sending any resources to the client.</p> ]]></description>
<pubDate>Wed, 26 Dec 2012 04:36:54 GMT</pubDate>
<guid>http://snipplr.com/view/69258/nodejs-serverside-browser-detection/</guid>
</item>
<item>
<title>(HTML) HTML5: Input box with regular expressions</title>
<link>http://snipplr.com/view/66912/html5-input-box-with-regular-expressions/</link>
<description><![CDATA[ <p>If I ever need a regular expression for $99.99. Here it is.</p> ]]></description>
<pubDate>Mon, 27 Aug 2012 03:10:19 GMT</pubDate>
<guid>http://snipplr.com/view/66912/html5-input-box-with-regular-expressions/</guid>
</item>
<item>
<title>(JavaScript) Firebase: Chat</title>
<link>http://snipplr.com/view/66265/firebase-chat/</link>
<description><![CDATA[ <p>Dead simple way to provide chat to your apps using Javascript</p> ]]></description>
<pubDate>Sun, 22 Jul 2012 04:41:40 GMT</pubDate>
<guid>http://snipplr.com/view/66265/firebase-chat/</guid>
</item>
<item>
<title>(JavaScript) Firebase: Leaderboard</title>
<link>http://snipplr.com/view/66264/firebase-leaderboard/</link>
<description><![CDATA[ <p>Easy-to-use leaderboard</p> ]]></description>
<pubDate>Sun, 22 Jul 2012 04:39:49 GMT</pubDate>
<guid>http://snipplr.com/view/66264/firebase-leaderboard/</guid>
</item>
<item>
<title>(JavaScript) NodeJS: Minimize all the JS files in a directory using Uglify-js</title>
<link>http://snipplr.com/view/66177/nodejs-minimize-all-the-js-files-in-a-directory-using-uglifyjs/</link>
<description><![CDATA[ <p>If you happen to have 5 or 6 javascript files that you'd like to compress into 1, then try uglify within terminal.</p> ]]></description>
<pubDate>Tue, 17 Jul 2012 12:51:36 GMT</pubDate>
<guid>http://snipplr.com/view/66177/nodejs-minimize-all-the-js-files-in-a-directory-using-uglifyjs/</guid>
</item>
<item>
<title>(JavaScript) NodeJS: Delivering a crossdomain.xml file using Express.JS</title>
<link>http://snipplr.com/view/66014/nodejs-delivering-a-crossdomainxml-file-using-expressjs/</link>
<description><![CDATA[ <p>There are many ways to deliver a crossdomain.xml file through NodeJS or Express.js.  Here is one solution</p> ]]></description>
<pubDate>Sat, 07 Jul 2012 10:32:23 GMT</pubDate>
<guid>http://snipplr.com/view/66014/nodejs-delivering-a-crossdomainxml-file-using-expressjs/</guid>
</item>
<item>
<title>(JavaScript) Javascript: Controlling video using D-Pad control</title>
<link>http://snipplr.com/view/65748/javascript-controlling-video-using-dpad-control/</link>
<description><![CDATA[ <p>If you happen to have a GoogleTV and you want to control  using the D-Pad, here's how you do it using a switch case and jQuery.</p> ]]></description>
<pubDate>Fri, 22 Jun 2012 06:13:28 GMT</pubDate>
<guid>http://snipplr.com/view/65748/javascript-controlling-video-using-dpad-control/</guid>
</item>
<item>
<title>(ActionScript 3) HTML: Disable autozoom on GoogleTV</title>
<link>http://snipplr.com/view/65747/html-disable-autozoom-on-googletv/</link>
<description><![CDATA[ <p>If you want to design your site without having Google compensate using autozoom</p> ]]></description>
<pubDate>Fri, 22 Jun 2012 05:52:53 GMT</pubDate>
<guid>http://snipplr.com/view/65747/html-disable-autozoom-on-googletv/</guid>
</item>
<item>
<title>(JavaScript) Javascript: User-agent detect GoogleTV or Boxee</title>
<link>http://snipplr.com/view/65746/javascript-useragent-detect-googletv-or-boxee/</link>
<description><![CDATA[ <p>Simple way to detect GoogleTV or Boxee browsers using Javascript.</p> ]]></description>
<pubDate>Fri, 22 Jun 2012 05:50:48 GMT</pubDate>
<guid>http://snipplr.com/view/65746/javascript-useragent-detect-googletv-or-boxee/</guid>
</item>
<item>
<title>(JavaScript) NodeJS + ExpressJS: Strip out port from req.headers.host</title>
<link>http://snipplr.com/view/65682/nodejs--expressjs-strip-out-port-from-reqheadershost/</link>
<description><![CDATA[ <p>I doubt anyone will ever need this but just in case.  I had a scenario where I needed to deliver the hostname (without the port) through an .ejs variable.  The hostname comes from the request header so that's easy to find and I simply used a .match with a ternary conditional to keep things clean.</p> ]]></description>
<pubDate>Mon, 18 Jun 2012 01:58:16 GMT</pubDate>
<guid>http://snipplr.com/view/65682/nodejs--expressjs-strip-out-port-from-reqheadershost/</guid>
</item>
<item>
<title>(JavaScript) Node.js: Import geo-based Flickr data into CouchDB</title>
<link>http://snipplr.com/view/64875/nodejs-import-geobased-flickr-data-into-couchdb/</link>
<description><![CDATA[ <p>The Flickr URL creates a JSON feed with geo-based photos.  Using Node.js, CouchDB, and cradle (npm install cradle), you can ingest the JSON data into CouchDB and perform complicated spatial indexing queries.  The command for the import is bash$ node name_of_this_javascript.js</p> ]]></description>
<pubDate>Wed, 16 May 2012 02:12:45 GMT</pubDate>
<guid>http://snipplr.com/view/64875/nodejs-import-geobased-flickr-data-into-couchdb/</guid>
</item>
<item>
<title>(HTML) HTML5: Boilerplate</title>
<link>http://snipplr.com/view/64341/html5-boilerplate/</link>
<description><![CDATA[ <p>I suspect this boilerplate code will continue to evolve while I settle in on my favorite libraries and frameworks but</p> ]]></description>
<pubDate>Wed, 04 Apr 2012 01:41:24 GMT</pubDate>
<guid>http://snipplr.com/view/64341/html5-boilerplate/</guid>
</item>
<item>
<title>(JavaScript) Javascript: Copy a video frame and turn it into an image</title>
<link>http://snipplr.com/view/64256/javascript-copy-a-video-frame-and-turn-it-into-an-image/</link>
<description><![CDATA[ <p>Very cool example of copying a frame from an MP4 and displaying it on the canvas or image. In order for images to be saved, the video must come from the same domain</p> ]]></description>
<pubDate>Sat, 31 Mar 2012 07:05:43 GMT</pubDate>
<guid>http://snipplr.com/view/64256/javascript-copy-a-video-frame-and-turn-it-into-an-image/</guid>
</item>
<item>
<title>(Python) Python: Last.Fm Advanced API Example</title>
<link>http://snipplr.com/view/63163/python-lastfm-advanced-api-example/</link>
<description><![CDATA[ <p>I started messing around with the Last.fm API and somehow just started building more and more service requests.  This should be enough to get anyone started on using Last.FM's API</p> ]]></description>
<pubDate>Wed, 08 Feb 2012 07:24:38 GMT</pubDate>
<guid>http://snipplr.com/view/63163/python-lastfm-advanced-api-example/</guid>
</item>
<item>
<title>(ActionScript 3) Python: Last.fm Simple API Example</title>
<link>http://snipplr.com/view/63161/python-lastfm-simple-api-example/</link>
<description><![CDATA[ <p>Recently I needed to capture a JSON feed of the top artists from Last.fm.  The script makes a request for a JSON response which I later treat as a dictionary object. You'll probably need to sign up for an API Key before using this script</p> ]]></description>
<pubDate>Wed, 08 Feb 2012 06:19:18 GMT</pubDate>
<guid>http://snipplr.com/view/63161/python-lastfm-simple-api-example/</guid>
</item>
<item>
<title>(Ruby) Ruby: Search Spotify API</title>
<link>http://snipplr.com/view/62785/ruby-search-spotify-api/</link>
<description><![CDATA[ <p>Simple test showing how to make a request to Spotify's API.</p> ]]></description>
<pubDate>Thu, 26 Jan 2012 10:04:01 GMT</pubDate>
<guid>http://snipplr.com/view/62785/ruby-search-spotify-api/</guid>
</item>
<item>
<title>(Django) Django: 3 ways to serve templates in views.py</title>
<link>http://snipplr.com/view/62232/django-3-ways-to-serve-templates-in-viewspy/</link>
<description><![CDATA[ <p>There are so many ways to serve templates within views.py that sometimes it's hard to get a handle on which is ideal for a project.  This snippet does not attempt to explain every possible way to serve a template, simply a few I've found helpful organized from low-level (more code) to high-level (less code)</p> ]]></description>
<pubDate>Tue, 03 Jan 2012 03:36:32 GMT</pubDate>
<guid>http://snipplr.com/view/62232/django-3-ways-to-serve-templates-in-viewspy/</guid>
</item>
</channel>
</rss>