<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - micmath</title>
<link>http://snipplr.com/users/micmath</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 10:27:57 GMT</pubDate>
<item>
<title>(JavaScript) is it an array?</title>
<link>http://snipplr.com/view/6852/is-it-an-array/</link>
<description><![CDATA[ <p>Cribbed from Crockford's "JavaScript: The good parts."</p> ]]></description>
<pubDate>Mon, 23 Jun 2008 11:15:26 GMT</pubDate>
<guid>http://snipplr.com/view/6852/is-it-an-array/</guid>
</item>
<item>
<title>(JavaScript) Get url to external script</title>
<link>http://snipplr.com/view/6741/get-url-to-external-script/</link>
<description><![CDATA[ <p>This could be included inside the external script itself, and compared to window.location if the returned URL were relative.</p> ]]></description>
<pubDate>Mon, 16 Jun 2008 12:24:14 GMT</pubDate>
<guid>http://snipplr.com/view/6741/get-url-to-external-script/</guid>
</item>
<item>
<title>(JavaScript) Faster concat</title>
<link>http://snipplr.com/view/6099/faster-concat/</link>
<description><![CDATA[ <p>The plus operator is sometimes slower than joining an array.</p> ]]></description>
<pubDate>Fri, 02 May 2008 13:25:24 GMT</pubDate>
<guid>http://snipplr.com/view/6099/faster-concat/</guid>
</item>
<item>
<title>(JavaScript) Check Quirks Mode</title>
<link>http://snipplr.com/view/5965/check-quirks-mode/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Apr 2008 11:18:00 GMT</pubDate>
<guid>http://snipplr.com/view/5965/check-quirks-mode/</guid>
</item>
<item>
<title>(JavaScript) Get mouse coordinates relative to document</title>
<link>http://snipplr.com/view/5828/get-mouse-coordinates-relative-to-document/</link>
<description><![CDATA[ <p>Snagged from pp]{
It's relative to document, not the visible area in the window.</p> ]]></description>
<pubDate>Mon, 14 Apr 2008 10:32:35 GMT</pubDate>
<guid>http://snipplr.com/view/5828/get-mouse-coordinates-relative-to-document/</guid>
</item>
<item>
<title>(JavaScript) Fetch the contents of webpage via Rhino</title>
<link>http://snipplr.com/view/5370/fetch-the-contents-of-webpage-via-rhino/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 11 Mar 2008 13:36:59 GMT</pubDate>
<guid>http://snipplr.com/view/5370/fetch-the-contents-of-webpage-via-rhino/</guid>
</item>
<item>
<title>(JavaScript) Get the actual style property value of an element</title>
<link>http://snipplr.com/view/4979/get-the-actual-style-property-value-of-an-element/</link>
<description><![CDATA[ <p>Gets the style property as rendered, not as defined (which can be different).</p> ]]></description>
<pubDate>Mon, 11 Feb 2008 08:52:00 GMT</pubDate>
<guid>http://snipplr.com/view/4979/get-the-actual-style-property-value-of-an-element/</guid>
</item>
<item>
<title>(Other) Use Unix 'find' to propset the svn Id on many files at once</title>
<link>http://snipplr.com/view/4968/use-unix-find-to-propset-the-svn-id-on-many-files-at-once/</link>
<description><![CDATA[ <p>There may be an easier way to do this, but if there is I can't find it. This sets the svn property $Id$ of every javaScript file in the app/lib directory.</p> ]]></description>
<pubDate>Sat, 09 Feb 2008 18:14:59 GMT</pubDate>
<guid>http://snipplr.com/view/4968/use-unix-find-to-propset-the-svn-id-on-many-files-at-once/</guid>
</item>
<item>
<title>(HTML) DTD Roundup</title>
<link>http://snipplr.com/view/4860/dtd-roundup/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 31 Jan 2008 09:10:37 GMT</pubDate>
<guid>http://snipplr.com/view/4860/dtd-roundup/</guid>
</item>
<item>
<title>(PHP) recursive array_map for php4</title>
<link>http://snipplr.com/view/4387/recursive-arraymap-for-php4/</link>
<description><![CDATA[ <p>in php5 use array_walk_recursive</p> ]]></description>
<pubDate>Thu, 20 Dec 2007 06:39:10 GMT</pubDate>
<guid>http://snipplr.com/view/4387/recursive-arraymap-for-php4/</guid>
</item>
<item>
<title>(Bash) Set up public private keys for ssh</title>
<link>http://snipplr.com/view/4073/set-up-public-private-keys-for-ssh/</link>
<description><![CDATA[ <p>So you don't have to type the password everytime you log in to that remote ssh server. Don't enter a passphrase when prompted, just hit enter. This example is for Mac OS X but is likely to work on *nix plats too.</p> ]]></description>
<pubDate>Tue, 06 Nov 2007 04:53:53 GMT</pubDate>
<guid>http://snipplr.com/view/4073/set-up-public-private-keys-for-ssh/</guid>
</item>
<item>
<title>(PHP) Treat variable as a file</title>
<link>http://snipplr.com/view/4051/treat-variable-as-a-file/</link>
<description><![CDATA[ <p>Occasionally you'll have a string and need to pass it to a function that will only take a filehandle (such as fgetcsv). Here's how to create a virtual filehandle in memory.</p> ]]></description>
<pubDate>Tue, 30 Oct 2007 18:58:45 GMT</pubDate>
<guid>http://snipplr.com/view/4051/treat-variable-as-a-file/</guid>
</item>
<item>
<title>(Smarty) Short preview in Smarty is...</title>
<link>http://snipplr.com/view/4047/short-preview-in-smarty-is/</link>
<description><![CDATA[ <p>Short preview in Smarty is generated from longer text like this.</p> ]]></description>
<pubDate>Tue, 30 Oct 2007 12:45:43 GMT</pubDate>
<guid>http://snipplr.com/view/4047/short-preview-in-smarty-is/</guid>
</item>
<item>
<title>(JavaScript) Get contents of DOM node by ID</title>
<link>http://snipplr.com/view/4001/get-contents-of-dom-node-by-id/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 25 Oct 2007 15:52:03 GMT</pubDate>
<guid>http://snipplr.com/view/4001/get-contents-of-dom-node-by-id/</guid>
</item>
<item>
<title>(PHP) Serve .php files as PHP5</title>
<link>http://snipplr.com/view/3900/serve-php-files-as-php5/</link>
<description><![CDATA[ <p>Add this to the .htaccess file in any directory which contains the .php file. Note that you can change ".php" in this snippet to other things, like ".html" or ".php5"</p> ]]></description>
<pubDate>Mon, 15 Oct 2007 16:33:18 GMT</pubDate>
<guid>http://snipplr.com/view/3900/serve-php-files-as-php5/</guid>
</item>
<item>
<title>(PHP) Dealing with sparse arrays</title>
<link>http://snipplr.com/view/3803/dealing-with-sparse-arrays/</link>
<description><![CDATA[ <p>This snippet assumes you want to walk the numbered array items only, as you would with a normal for loop, but a for loop up to count($array) won't work with a sparse array because the highest array index will always be higher than the array count.</p> ]]></description>
<pubDate>Sat, 29 Sep 2007 11:58:44 GMT</pubDate>
<guid>http://snipplr.com/view/3803/dealing-with-sparse-arrays/</guid>
</item>
<item>
<title>(SQL) Lower case MySQL Column</title>
<link>http://snipplr.com/view/3686/lower-case-mysql-column/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 13 Sep 2007 13:47:49 GMT</pubDate>
<guid>http://snipplr.com/view/3686/lower-case-mysql-column/</guid>
</item>
<item>
<title>(SQL) Export and import from MySQL</title>
<link>http://snipplr.com/view/3685/export-and-import-from-mysql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 13 Sep 2007 11:40:27 GMT</pubDate>
<guid>http://snipplr.com/view/3685/export-and-import-from-mysql/</guid>
</item>
<item>
<title>(JavaScript) Find any node</title>
<link>http://snipplr.com/view/3672/find-any-node/</link>
<description><![CDATA[ <p>Lets you find every node in a document based on any test.</p> ]]></description>
<pubDate>Wed, 12 Sep 2007 06:38:38 GMT</pubDate>
<guid>http://snipplr.com/view/3672/find-any-node/</guid>
</item>
<item>
<title>(Other) Create encrypted sparse disk image on Mac OS X</title>
<link>http://snipplr.com/view/3665/create-encrypted-sparse-disk-image-on-mac-os-x/</link>
<description><![CDATA[ <p>Quick way to lock up some sensitive files?</p> ]]></description>
<pubDate>Tue, 11 Sep 2007 06:46:48 GMT</pubDate>
<guid>http://snipplr.com/view/3665/create-encrypted-sparse-disk-image-on-mac-os-x/</guid>
</item>
</channel>
</rss>