FM radio dial by @tttttanaka

#!ruby -n
j="|#{' '*71}|

";n=$_.to_i;87<n&&n<?m?j[(($_.to_f-81-3*z=n/33)*-~z-2).round,1]="*":j.tr!(' ','x');puts"|#{[*88..?l]*' '}|",j

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

download

return top