Skip to content

Instantly share code, notes, and snippets.

@ihincks
Last active December 3, 2017 21:32
Show Gist options
  • Save ihincks/0b016c23af42af46397915dc2194c7ef to your computer and use it in GitHub Desktop.
Save ihincks/0b016c23af42af46397915dc2194c7ef to your computer and use it in GitHub Desktop.
Tacocat
#!/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