[Skip To Content]


# Ruby and Unicode

Nope, not the usual boring text encoding stuff, but this :

  1. #!ruby -Ku
  2. module Kernel
  3. def ∑( *args ) # Sum of
  4. args.inject( 0 ) { |i, j| i += j }
  5. end
  6. def √( number ) # Root of
  7. Math.sqrt( number )
  8. end
  9. end
  10. puts √(49)
  11. puts ∑(1,2,3,4,5)

Seriously cool. Idea stolen from here.

More about this site...

Last Week’s Top 5 Albums (More »)

  1. Checkmate SavageThe Phantom Band
  2. Port Of MorrowThe Shins
  3. FalconThe Courteeners
  4. Broken BellsBroken Bells
  5. The Stars are Indifferent to AstronomyNada Surf