Hyperpolyglot PHP, Perl, Python, Ruby Card

Hyperpolyglot is an amazing reference card for PHP, Perl, Python and Ruby all-in-one!

Check http://hyperpolyglot.org/scripting

Advertisements

How to install ruby on Ubuntu 10.04

 
 command: 
 sudo apt-get install ruby-full
 
open up a shell and type irb and hit enter 
then u will geta prompt like this
irb(main):001:0>
 
first program in ruby

Hello world in ruby: 
 irb(main):001:0> "Hello World"=> "Hello World"