<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Prattlin' On &#187; Code Snippets</title>
	<atom:link href="http://journal.anadaru.com/category/codebits/feed/" rel="self" type="application/rss+xml" />
	<link>http://journal.anadaru.com</link>
	<description>Yet again.</description>
	<lastBuildDate>Sun, 04 Apr 2010 21:13:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Textmate&#8217;s to HTML</title>
		<link>http://journal.anadaru.com/textmates-to-html/</link>
		<comments>http://journal.anadaru.com/textmates-to-html/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 01:20:03 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Random-o-rama]]></category>
		<category><![CDATA[Recipes]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://journal.anadaru.com/?p=66</guid>
		<description><![CDATA[About 1.5 years ago, I switched to a Macbook Pro for my main computer, most of which is a story for another time.  The story this time is TextMate.  TextMate is a editor for ye ol&#8217; OS X.

Actually, this story isn&#8217;t about TextMate as a whole, but of one of the many functions hidden within.  [...]]]></description>
			<content:encoded><![CDATA[<p>About 1.5 years ago, I switched to a Macbook Pro for my main computer, most of which is a story for another time.  The story this time is <a title="Schach und TextMate" href="http://macromates.com/" target="_self">TextMate</a>.  TextMate is a editor for ye ol&#8217; OS X.</p>

<p>Actually, this story isn&#8217;t about TextMate as a whole, but of one of the many functions hidden within.  TextMate can be thought of a modern Emacs in a sense. Except its Mac only.  And its not free. Anyway&#8230;  I just discovered that Textmate will turn a page o&#8217; code into an HTML page for you.  With numbers if you want, and the look based upon your theme. (Ah, how I love you syntax highlighting!)
<pre name="code" class="Ruby">
defun something 
  puts something_else 
end
</pre></p>

<p>So, I can generate pages like that on whim. Why?  I don&#8217;t know. But its freaking tight.  Could make for a nice online repository of browsable code.  You could even bust out yer favorite language with the XSLT, and reconvert it to code. Or, offer a download link. Weehaw.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.anadaru.com/textmates-to-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript isText</title>
		<link>http://journal.anadaru.com/javascript-istext/</link>
		<comments>http://journal.anadaru.com/javascript-istext/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 14:43:51 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[form-validation]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://journal.anadaru.com/javascript-istext/</guid>
		<description><![CDATA[This snippet will test for a letter followed by any number of letters or &#8216;-&#8217; or &#8216;.&#8217;.

[js]
function isText( text ) {
     var regex = /^[a-zA-Z][a-zA-Z&#45;&#46;]*$/;
     return regex.test( text );
}
[/js]
]]></description>
			<content:encoded><![CDATA[<p>This snippet will test for a letter followed by any number of letters or &#8216;-&#8217; or &#8216;.&#8217;.</p>

<p>[js]
function isText( text ) {
     var regex = /^[a-zA-Z][a-zA-Z&#45;&#46;]*$/;
     return regex.test( text );
}
[/js]</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.anadaru.com/javascript-istext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
