wave line by ideo

<?for($y=0;$w=fgetc(STDIN),$w!="\n";$l=$c||$w==' '?$l:$w,$a=$l==$w?1:($l<$w?2:0),$l==$w?1:($l<$w?--$y:++$y),$t[$y].=str_pad($v,$c++-strlen($t[$y])).$w,$l=$w,ksort($t));
echo(join("\n",$t));

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

download

return to the top page