Skip to content
 

Ruby fun

Still learning...

Note that this code works only with ruby 1.8.x.

Copy and distribution of the code published in this page, with or without
modification, are permitted in any medium without royalty provided the copyright
notice (see bottom of page) and this notice are preserved.
split,Map=";!94B(KE*N8L.1=","gc_~qJ9h2mH_SiU)ubVkUJO~|LjIs{SKxe=zF]}dPcx4}s{"
mAp=(chr="length".length)*10-27;maP=(1847664772/461916193-1)/3-54567*7/381969
split_=([:EBPebKtoGRSf0IsjPodZZUqnL]&["*:i,Ypa(g!l9iwW5%[+3f(!R5j,(-m"]).to_s
puts=split.split(split_).map{|map|(Map[map[maP]-mAp]-chr).chr}.join;puts puts

2 Comments

  1. Brent says:

    brent@gamo:~$ ruby /tmp/r.rb
    /tmp/r.rb:4:in `block in ': undefined method `-' for ";":String (NoMethodError)
    from /tmp/r.rb:4:in `map'
    from /tmp/r.rb:4:in `'
    bclark@gamo:~$ vi /tmp/r.rb