<?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/ruby</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 22 Nov 2008 04:34:30 GMT</pubDate>
<item>
<title>(Ruby) Rdoc</title>
<link>http://snipplr.com/view/9534/rdoc/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 06 Nov 2008 11:54:26 GMT</pubDate>
<guid>http://snipplr.com/view/9534/rdoc/</guid>
</item>
<item>
<title>(Rails) Use Rake to tear down, build and prepare a DB for testing with AutoTest/ZenTest</title>
<link>http://snipplr.com/view/9128/use-rake-to-tear-down-build-and-prepare-a-db-for-testing-with-autotestzentest/</link>
<description><![CDATA[ <p>Run the following commands in the root of your Rails project.</p> ]]></description>
<pubDate>Mon, 20 Oct 2008 12:05:53 GMT</pubDate>
<guid>http://snipplr.com/view/9128/use-rake-to-tear-down-build-and-prepare-a-db-for-testing-with-autotestzentest/</guid>
</item>
<item>
<title>(Ruby) Post to Twitter from the shell</title>
<link>http://snipplr.com/view/6594/post-to-twitter-from-the-shell/</link>
<description><![CDATA[ <p>Put this in a file called tweet.rb, then call as follows:
    ruby tweet.rb username "my tweet"

Or you can include your password in the command like so 
    ruby twit.rb username:password "my tweet"

(note that this is hugely insecure as your password will wind up in your .history, not to mention being visible to shouldersurfers).

Updated: if a post is over the 140-character limit, the script prints back the part of the tweet that would not fit.  This makes it easier to trim down overly long posts.</p> ]]></description>
<pubDate>Thu, 05 Jun 2008 09:23:47 GMT</pubDate>
<guid>http://snipplr.com/view/6594/post-to-twitter-from-the-shell/</guid>
</item>
<item>
<title>(Bash) Get the length of a string on the command line with Ruby</title>
<link>http://snipplr.com/view/5584/get-the-length-of-a-string-on-the-command-line-with-ruby/</link>
<description><![CDATA[ <p>The following command prints 21.</p> ]]></description>
<pubDate>Thu, 27 Mar 2008 23:08:41 GMT</pubDate>
<guid>http://snipplr.com/view/5584/get-the-length-of-a-string-on-the-command-line-with-ruby/</guid>
</item>
</channel>
</rss>