Japanese numeral for Ruby kaigi by znz (kaigi)

h={'\xe5\x8d\x81',' 10+','\xe7\x99\xbe',' ?d+','\xe5\x8d\x83',' 1000+',"\n",'+0'}\x0d
i=0;'\xe4\xb8\x80\xe4\xba\x8c\xe4\xb8\x89\xe5\x9b\x9b\xe4\xba\x94\xe5\x85\xad\xe4\xb8\x83\xe5\x85\xab\xe4\xb9\x9d'.scan(/./u){h[$&]=i+=1}\x0d
$<.map{|s|p eval s.gsub(/./mu){h[$&]}.gsub(/\d /,'\&*')}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page