<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Eliazar's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 26 Jul 2008 15:45:44 GMT</pubDate>
    <description>DZone Snippets: Eliazar's Code Snippets</description>
    <item>
      <title>Ruby Title Case</title>
      <link>http://snippets.dzone.com/posts/show/4702</link>
      <description>Capitalize all words in a string with the briefest of snippets!&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;'some string here'.gsub(/\b\w/){$&amp;.upcase}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 27 Oct 2007 00:41:10 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4702</guid>
      <author>eliazar (eliazar parra)</author>
    </item>
    <item>
      <title>HyperScript</title>
      <link>http://snippets.dzone.com/posts/show/4267</link>
      <description>HyperScript!&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function each(a, f) { for(var i=0, l=a.length; i&lt;l; i++) f(a[i]) };&lt;br /&gt;each('a big blockquote br b center code div em form h1 h2 h3 h4 h5 h6 hr img iframe input i li ol option pre p script select small span strong style sub sup table tbody td textarea tr ul u'.split(' '),&lt;br /&gt;	function(label){&lt;br /&gt;		this[label]=function(){&lt;br /&gt;			var tag=document.createElement(label);&lt;br /&gt;			each(arguments, function(e){ &lt;br /&gt;				if(e.nodeType) tag.appendChild(e);&lt;br /&gt;				else {&lt;br /&gt;					if(typeof e=='string' || typeof e=='number') tag.innerHTML+=e;&lt;br /&gt;					else for(var p in e) {&lt;br /&gt;						if(p=='style') for(var q in e[p]) tag[p][q]=e[p][q];&lt;br /&gt;						else o[q]=p[q];&lt;br /&gt;					};&lt;br /&gt;				};&lt;br /&gt;			});&lt;br /&gt;			return tag;&lt;br /&gt;		};&lt;br /&gt;	});&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 06 Jul 2007 05:11:36 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4267</guid>
      <author>eliazar (eliazar parra)</author>
    </item>
  </channel>
</rss>
