Last active
December 3, 2017 21:32
-
-
Save ihincks/0b016c23af42af46397915dc2194c7ef to your computer and use it in GitHub Desktop.
Tacocat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/awesomethon | |
import adh as brother | |
from mad import skillz | |
import hopefully_not as too_hard | |
from dickens import major_work | |
message_ascii = skillz.ascii_array(message) | |
dickens_ascii = skillz.ascii_array(major_work.get_chapter(brother.get_age())) | |
encoded_ascii = mod(adhmessage_ascii + dickens_ascii, 2**8) | |
lil_pictures = map( | |
skillz.make_lil_qr_picture, | |
[some_chunk for some_chunk in skillz.chunkerize(encoded_ascii)] | |
) | |
try: | |
brother.receive( | |
skillz.Postcard(lil_pictures, transformations=skillz.TRANSFORMATION_LIST) | |
) | |
except ItalianPostError as e: | |
print r":(" | |
raise e | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment