Skip to content

Instantly share code, notes, and snippets.

@danini-the-panini
Created April 29, 2016 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danini-the-panini/8f0884693cf07f2cc143448553331038 to your computer and use it in GitHub Desktop.
Save danini-the-panini/8f0884693cf07f2cc143448553331038 to your computer and use it in GitHub Desktop.
N = 960939379918958884971672962127852754715004339660129306651505519271702802395266424689642842174350718121267153782770623355993237280874144307891325963941337723487857735749823926629715517173716995165232890538221612403238855866184013235585136048828693337902491454229288667081096184496091705183454067827731551705405381627380967602565625016981482083418783163849115590225610003652351370343874461848378737238198224849863465033159410054974700593138339226497249461751545728366702369745461014655997933798537483143786841806593422227898388722980000748404719
def tupper(x, y)
0.5 < (((y/17).floor*(2 ** (-17 * x.floor - (y.floor % 17)))) % 2).floor
end
(N..N+16).each do |y|
105.downto(0) do |x|
print tupper(x, y) ? "\e[47m" : "\e[40m";
print ' '
end
print "\n"
end
print "\e[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment