<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - wizard04</title>
<link>http://snipplr.com/users/wizard04</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 01:07:14 GMT</pubDate>
<item>
<title>(JavaScript) ISO 8601 date conversion</title>
<link>http://snipplr.com/view/58380/iso-8601-date-conversion/</link>
<description><![CDATA[ <p>This requires my [date formatting script](http://snipplr.com/view/54806/javascript-date-formatting/).

(date).toISO() converts the Date object to an ISO 8601 string

Date.fromISO() converts an ISO 8601 string to a Date object</p> ]]></description>
<pubDate>Fri, 02 Sep 2011 00:28:31 GMT</pubDate>
<guid>http://snipplr.com/view/58380/iso-8601-date-conversion/</guid>
</item>
<item>
<title>(JavaScript) Get time intervals between two Dates</title>
<link>http://snipplr.com/view/58379/get-time-intervals-between-two-dates/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 02 Sep 2011 00:20:57 GMT</pubDate>
<guid>http://snipplr.com/view/58379/get-time-intervals-between-two-dates/</guid>
</item>
<item>
<title>(JavaScript) Show Google +1 Button Bookmarklet</title>
<link>http://snipplr.com/view/57655/show-google-1-button-bookmarklet/</link>
<description><![CDATA[ <p>Bookmarklet to show the Google +1 button on the page you are viewing.</p> ]]></description>
<pubDate>Sat, 06 Aug 2011 04:29:10 GMT</pubDate>
<guid>http://snipplr.com/view/57655/show-google-1-button-bookmarklet/</guid>
</item>
<item>
<title>(SQL) Get ID of last inserted record in Access</title>
<link>http://snipplr.com/view/54991/get-id-of-last-inserted-record-in-access/</link>
<description><![CDATA[ <p>Get the value of the autonumber field for the last record inserted into an Access database via the current connection.</p> ]]></description>
<pubDate>Wed, 08 Jun 2011 06:46:45 GMT</pubDate>
<guid>http://snipplr.com/view/54991/get-id-of-last-inserted-record-in-access/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Date Formatting</title>
<link>http://snipplr.com/view/54806/javascript-date-formatting/</link>
<description><![CDATA[ <p>Format a date into a string using several string variables.

Usage:  
(new Date("6/6/2011")).format("%W, %B %d%o, %Y");

Result:  
Monday, June 6th, 2011</p> ]]></description>
<pubDate>Fri, 03 Jun 2011 05:34:36 GMT</pubDate>
<guid>http://snipplr.com/view/54806/javascript-date-formatting/</guid>
</item>
<item>
<title>(JavaScript) typeOf - simple yet robust</title>
<link>http://snipplr.com/view/52051/typeof--simple-yet-robust/</link>
<description><![CDATA[ <p>Brilliant solution using Object.prototype.toString()

Test cases included (commented out)</p> ]]></description>
<pubDate>Thu, 14 Apr 2011 05:30:20 GMT</pubDate>
<guid>http://snipplr.com/view/52051/typeof--simple-yet-robust/</guid>
</item>
<item>
<title>(JavaScript) Cross-browser event registration</title>
<link>http://snipplr.com/view/52041/crossbrowser-event-registration/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 14 Apr 2011 02:16:14 GMT</pubDate>
<guid>http://snipplr.com/view/52041/crossbrowser-event-registration/</guid>
</item>
<item>
<title>(JavaScript) Mouse Event Button</title>
<link>http://snipplr.com/view/52040/mouse-event-button/</link>
<description><![CDATA[ <p>Returns an object with the `event.button` values of both the W3C and Microsoft models.</p> ]]></description>
<pubDate>Thu, 14 Apr 2011 02:12:49 GMT</pubDate>
<guid>http://snipplr.com/view/52040/mouse-event-button/</guid>
</item>
<item>
<title>(JavaScript) MouseEnter/Leave Handlers 2</title>
<link>http://snipplr.com/view/52039/mouseenterleave-handlers-2/</link>
<description><![CDATA[ <p>These functions allow you to set a handler for a mouseleave/enter event.</p> ]]></description>
<pubDate>Thu, 14 Apr 2011 02:10:05 GMT</pubDate>
<guid>http://snipplr.com/view/52039/mouseenterleave-handlers-2/</guid>
</item>
<item>
<title>(JavaScript) Remove tracking script in Google search results</title>
<link>http://snipplr.com/view/39616/remove-tracking-script-in-google-search-results/</link>
<description><![CDATA[ <p>A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don't understand what the incompatibility is though, since the tracking script just changes the href attribute at the last minute.

Based on a script at [http://www.searchlores.org/ritz\_google\_anti\_snoop.htm](http://www.searchlores.org/ritz_google_anti_snoop.htm).</p> ]]></description>
<pubDate>Fri, 27 Aug 2010 23:31:54 GMT</pubDate>
<guid>http://snipplr.com/view/39616/remove-tracking-script-in-google-search-results/</guid>
</item>
<item>
<title>(ASP) List files in a directory</title>
<link>http://snipplr.com/view/33419/list-files-in-a-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 28 Apr 2010 08:44:42 GMT</pubDate>
<guid>http://snipplr.com/view/33419/list-files-in-a-directory/</guid>
</item>
<item>
<title>(ASP) Serve HTML Table as Excel Worksheet</title>
<link>http://snipplr.com/view/32339/serve-html-table-as-excel-worksheet/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 Apr 2010 13:07:11 GMT</pubDate>
<guid>http://snipplr.com/view/32339/serve-html-table-as-excel-worksheet/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Type Tests</title>
<link>http://snipplr.com/view/28564/javascript-type-tests/</link>
<description><![CDATA[ <p>A more useful version of `typeof` and functions to test if a parameter is of a specified type.</p> ]]></description>
<pubDate>Thu, 18 Feb 2010 15:31:20 GMT</pubDate>
<guid>http://snipplr.com/view/28564/javascript-type-tests/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Classes</title>
<link>http://snipplr.com/view/27256/javascript-classes/</link>
<description><![CDATA[ <p>An implementation of class inheritance in JavaScript.</p> ]]></description>
<pubDate>Thu, 28 Jan 2010 16:44:35 GMT</pubDate>
<guid>http://snipplr.com/view/27256/javascript-classes/</guid>
</item>
<item>
<title>(Other) --Snipplr-- Workaround: Code in Comments</title>
<link>http://snipplr.com/view/22799/snipplr-workaround-code-in-comments/</link>
<description><![CDATA[ <p>For some reason, Snipplr has decided not to HTML-encode &amp;lt; and &amp;gt; signs (i.e., replacing them with `&amp;lt;` and `&amp;gt;`) that a user inputs into a comment box, and instead strips anything that looks like a tag from the comment entirely.

So, if you enter something like &amp;#96;&amp;lt;div&amp;gt;test&amp;lt;/div&amp;gt;&amp;#96; in the comment box, you would expect to see &amp;lt;div&amp;gt;test&amp;lt;/div&amp;gt; in the post but you would actually end up with `test`.

The exceptions that I've found are ``, ``, ``, ``, and `` tags.

The only reliable way to get around this odd implementation is to use the code tag with its content already HTML-encoded, just like you would if you were writing your own HTML. So entering something like &amp;lt;code&amp;gt;&amp;amp;lt;div&amp;amp;gt;test&amp;amp;lt;/div&amp;amp;gt;&amp;lt;/code&amp;gt; will give the expected result &amp;lt;div&amp;gt;test&amp;lt;/div&amp;gt;.

Note that you will also have to replace the back-ticks with `&amp;#96;`

FYI, here is the code I used to create this description itself. The same code is entered in the first comment below (note the difference where the back-ticks are used to surround this: `test`).</p> ]]></description>
<pubDate>Mon, 09 Nov 2009 11:57:52 GMT</pubDate>
<guid>http://snipplr.com/view/22799/snipplr-workaround-code-in-comments/</guid>
</item>
<item>
<title>(JavaScript) Reset 'undefined' Variable</title>
<link>http://snipplr.com/view/22506/reset-undefined-variable/</link>
<description><![CDATA[ <p>`undefined` is simply an undefined global variable. It is not a literal or a constant, though it is often used as if it is. Its value can be changed. To be sure its type is actually "undefined", redefine it at the beginning of your script files.</p> ]]></description>
<pubDate>Wed, 04 Nov 2009 14:45:54 GMT</pubDate>
<guid>http://snipplr.com/view/22506/reset-undefined-variable/</guid>
</item>
<item>
<title>(JavaScript) User-Script Location Bar Hack</title>
<link>http://snipplr.com/view/22474/userscript-location-bar-hack/</link>
<description><![CDATA[ <p>Runs a function from the address bar (like a bookmarklet). This can be used in Greasemonkey scripts to get around an XPCNativeWrapper object without accessing unsafeWindow.</p> ]]></description>
<pubDate>Wed, 04 Nov 2009 09:13:50 GMT</pubDate>
<guid>http://snipplr.com/view/22474/userscript-location-bar-hack/</guid>
</item>
<item>
<title>(JavaScript) Google Translate Bookmarklet</title>
<link>http://snipplr.com/view/22299/google-translate-bookmarklet/</link>
<description><![CDATA[ <p>Select some text to translate, or don't select anything to translate the entire page.</p> ]]></description>
<pubDate>Sun, 01 Nov 2009 23:33:59 GMT</pubDate>
<guid>http://snipplr.com/view/22299/google-translate-bookmarklet/</guid>
</item>
<item>
<title>(ASP) VBScript Regular Expression Search and Replace Functions</title>
<link>http://snipplr.com/view/19559/vbscript-regular-expression-search-and-replace-functions/</link>
<description><![CDATA[ <p>Functions to make using regular expressions a bit easier. They're named after the respective PHP function.</p> ]]></description>
<pubDate>Fri, 11 Sep 2009 11:53:57 GMT</pubDate>
<guid>http://snipplr.com/view/19559/vbscript-regular-expression-search-and-replace-functions/</guid>
</item>
<item>
<title>(ASP) Testing for Empty Arrays</title>
<link>http://snipplr.com/view/19558/testing-for-empty-arrays/</link>
<description><![CDATA[ <p>Checks if an array has been initialized, even if it is a dynamic array.</p> ]]></description>
<pubDate>Fri, 11 Sep 2009 11:46:40 GMT</pubDate>
<guid>http://snipplr.com/view/19558/testing-for-empty-arrays/</guid>
</item>
</channel>
</rss>
