Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2021
What would you like to do?
import sys
data = open("data.txt", "r").read()[:-1]
even = True
count = 0
for x in range(len(data)):
cur = int(data[x], 16)
for y in range(cur):
sys.stdout.write("██" if even else " ")
count += 1
if count % 29 == 0:
even = not even
Copy link

vgmoose commented May 20, 2021

(29 is sqrt(841), the sum of all the nibbles in data.txt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment