while gets; $_.chop! # Simulate -nl flags y,x=x,$_.scan(/..?/)(puts [x.zip(y).map{|c|(("%2s"*2%c).bytes.reduce(:+)/4.0).round.chr*2}*""]*2y,x=x,[])if$.%2<1||$<.eof? end
%%%%%%%%%%%%% % Hello, % % world! % %%%%%%%%%%%%%
$$>>II99###### $$>>II99###### $$##88KKGG#### $$##88KKGG####
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!