Zigzag by shinh

n=gets.to_i
(n-v=1).times{v|=v<<n*2-2}
n.times{|i|puts ('%b'%(v|v<<i*2))[i,999].tr('01',$_[1,2])}

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

download

return to the top page