[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. The SinglesThe Bluetones
  2. Night on My SideGemma Hayes
  3. PlansDeath Cab for Cutie
  4. Slipway FiresRazorlight
  5. Brain Thrust MasteryWe Are Scientists