I’ve stumbled across several great snippets of Ruby code on the Web in the past few weeks, and rather than bore you with a post on each one, here’s a whole collection at once:
1. RSS Twitter Bot – A short Ruby script that will read an RSS feed and republish it to your Twitter account. This could be useful for livestreaming or getting some sort of commercial presence on there.
2. Check if a number is prime in ONE line of Ruby – A rather mind-boggling technique to detect primes using a regular expression (!)
3. iTunes Database Parser – A short script that reads through your iTunes database and tells you what you like to listen to based on your listening habits. Read More