Y
Hacker News
new
|
ask
|
show
|
jobs
by
pavlo
5923 days ago
There is a nice "oneliner" in Ruby for that, created by Piers Cawley:
http://j.mp/anfTlJ
And for python there is a nice Article on CodingHorror:
http://j.mp/aCxlI3
Hope it's useful :)