<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/pattern</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 08:40:43 GMT</pubDate>
<item>
<title>(HTML) Bookmarklet Template: turn any snippet of JavaScript code into a Bookmarklet</title>
<link>http://snipplr.com/view/22806/bookmarklet-template-turn-any-snippet-of-javascript-code-into-a-bookmarklet/</link>
<description><![CDATA[ <p>[Will](http://twitter.com/wschenk) originally showed me how easy it is to transform random JS snippets into bookmarklets.  Once you set up the HTML, just view it in Firefox, and then drag the link to your bookmarks toolbar.

The basic form is 

&amp;lt;a href="javascript:CODE;void 0;"&amp;gt;NAME&amp;lt;/a&amp;gt;

Where `CODE` is any arbitrary JavaScript code, and `NAME` is the name you want the bookmarklet to have once it has been added to the Firefox toolbar.

And of course *don't use the javascript: protocol* in your HTML pages -- although it's (only!) OK for bookmarklets.</p> ]]></description>
<pubDate>Mon, 09 Nov 2009 17:34:49 GMT</pubDate>
<guid>http://snipplr.com/view/22806/bookmarklet-template-turn-any-snippet-of-javascript-code-into-a-bookmarklet/</guid>
</item>
<item>
<title>(Bash) Grep for files that do not match a pattern</title>
<link>http://snipplr.com/view/16699/grep-for-files-that-do-not-match-a-pattern/</link>
<description><![CDATA[ <p>The -L option lists files that do *not* contain a line matching the pattern given.</p> ]]></description>
<pubDate>Mon, 06 Jul 2009 16:37:12 GMT</pubDate>
<guid>http://snipplr.com/view/16699/grep-for-files-that-do-not-match-a-pattern/</guid>
</item>
<item>
<title>(Perl) provide default values for a hash</title>
<link>http://snipplr.com/view/3139/provide-default-values-for-a-hash/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 03 Jul 2007 23:14:08 GMT</pubDate>
<guid>http://snipplr.com/view/3139/provide-default-values-for-a-hash/</guid>
</item>
<item>
<title>(Perl) dump the contents of a data structure</title>
<link>http://snipplr.com/view/3138/dump-the-contents-of-a-data-structure/</link>
<description><![CDATA[ <p>hashes in Perl can be so elegant</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 23:08:28 GMT</pubDate>
<guid>http://snipplr.com/view/3138/dump-the-contents-of-a-data-structure/</guid>
</item>
<item>
<title>(Perl) Examine CSS selectors in JSP files and report on whether they match some patterns</title>
<link>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</link>
<description><![CDATA[ <p>Processe a directory of JSP source files, looks for regex matches, and reports on the number and location of matches.  For detecting deprecated attributes in XHTML.

Uses Mail::Outlook to send an email.  Requires you to click "ok" each time a notification is sent, but gets around firewalls.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:27:59 GMT</pubDate>
<guid>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</guid>
</item>
<item>
<title>(JavaScript) clear form field on first focus (inline version)</title>
<link>http://snipplr.com/view/2549/clear-form-field-on-first-focus-inline-version/</link>
<description><![CDATA[ <p>The unobtrusive version requires an onload statement.  Doing that in a backward-compatible fashion can be a pain in the ass.  So here is an inline version for use with older code.  This should work "out of the box" with any browser that has javascript.</p> ]]></description>
<pubDate>Fri, 27 Apr 2007 15:53:16 GMT</pubDate>
<guid>http://snipplr.com/view/2549/clear-form-field-on-first-focus-inline-version/</guid>
</item>
</channel>
</rss>
