<?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/template</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 23:24:45 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>(Ruby) RDoc format example</title>
<link>http://snipplr.com/view/10673/rdoc-format-example/</link>
<description><![CDATA[ <p>This is a boilerplate RDoc template which I paste into new Ruby files that I create.  It demonstrates some of the features of RDoc markup, such as links and comments (The 'this code is proprietary' message is commented out in favor of the MIT license)

The title directive will not work in plain text files, [due to a bug in RDoc](http://rubyforge.org/tracker/index.php?func=detail&amp;aid=3306&amp;group_id=627&amp;atid=2472)</p> ]]></description>
<pubDate>Wed, 24 Dec 2008 10:47:51 GMT</pubDate>
<guid>http://snipplr.com/view/10673/rdoc-format-example/</guid>
</item>
<item>
<title>(Ruby) Easiest way to make HAML use double quotes instead of single quotes</title>
<link>http://snipplr.com/view/10411/easiest-way-to-make-haml-use-double-quotes-instead-of-single-quotes/</link>
<description><![CDATA[ <p>Fortunately all it takes to make double quotes the global default for attribute wrappers in HAML is to change one line in the installed gem source.

If you're on a Mac, remember to sudo when you edit the source of an installed gem.</p> ]]></description>
<pubDate>Thu, 11 Dec 2008 23:08:05 GMT</pubDate>
<guid>http://snipplr.com/view/10411/easiest-way-to-make-haml-use-double-quotes-instead-of-single-quotes/</guid>
</item>
<item>
<title>(Perl) Generate XHTML on the command line with XML::API::XHTML</title>
<link>http://snipplr.com/view/4971/generate-xhtml-on-the-command-line-with-xmlapixhtml/</link>
<description><![CDATA[ <p>Build a simple XHTML document, format it with Tidy and print the result to "temp.html."

You may first need to `cpan   XML::API::XHTML`, and install Tidy using your favorite package manager, or just [download Tidy by itself](http://tidy.sourceforge.net/#binaries)

### If you can't install XML::API::XHTML

On my system, CPAN complained that "make test had returned bad status" during installation of XML::API::XHTML.  To solve this I started the CPAN shell (just type `cpan`) and then forced the install, like this:
    
    cpan> force XML::API::XHTML</p> ]]></description>
<pubDate>Sun, 10 Feb 2008 02:21:23 GMT</pubDate>
<guid>http://snipplr.com/view/4971/generate-xhtml-on-the-command-line-with-xmlapixhtml/</guid>
</item>
<item>
<title>(Perl) pod</title>
<link>http://snipplr.com/view/4885/pod/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 03 Feb 2008 15:50:04 GMT</pubDate>
<guid>http://snipplr.com/view/4885/pod/</guid>
</item>
<item>
<title>(HTML) Reusable Box with Images and CSS (implements a non-semantic variant of Sliding Doors)</title>
<link>http://snipplr.com/view/2439/reusable-box-with-images-and-css-implements-a-nonsemantic-variant-of-sliding-doors/</link>
<description><![CDATA[ <p>Reusable balloon, built with JavaScript and css.  Expands horizontally (set in the CSS) and vertically (automatically) up the size of its component images.  This solution is not semantic, but it is flexible.

The goal was to implement a variant of Sliding Doors that could be boiled down to two snippets of code (one before the content container, and one after) and some CSS.

Expects 3 images, examples of which can be found here: http://onemorebug.com/meme.washer/code_examples/reusableBox/images

Also includes an example JavaScript implementation.</p> ]]></description>
<pubDate>Sat, 07 Apr 2007 09:47:05 GMT</pubDate>
<guid>http://snipplr.com/view/2439/reusable-box-with-images-and-css-implements-a-nonsemantic-variant-of-sliding-doors/</guid>
</item>
</channel>
</rss>