Profile
Achievement
plexus's Recent SnippetsTagged ruby
- All /
« Prev 1 Next »
Command line currency convertor, just copy and paste. I named mine 'coin'. Make sure you have Ruby, Rubygems and Hpricot (gem install hpricot).
e.g.
~$ coin 100 eur usd
158.3300
Uses the site xurrency.com.
1
825
posted 16 years ago by plexus
There's another snippet here that's pure Ruby. This one can be used from the command line directly. The previous version still used Ruby, this one is pure shell.
0
810
posted 17 years ago by plexus