Skip to content

Instantly share code, notes, and snippets.

@zooba
Last active November 20, 2017 20:49
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 zooba/ddeb9847059702ab7f3e107904584a25 to your computer and use it in GitHub Desktop.
Save zooba/ddeb9847059702ab7f3e107904584a25 to your computer and use it in GitHub Desktop.
Payload for my PEP 551 demo
INTERNET_GUY = [
" .,...:, ",
" :,:::::,. ",
" `,.';;;';, ",
" `,.;'''':. ",
" :'+'''; ",
" ;''';; ",
" ;''';;. ",
" ,,.:;;;:;:;;:':.::. ",
" .::,,;:;++''+:';,...` ",
" `,,:;'::+'';:::';:;:. ",
" ;.::;:::::+;:::::':;:.. ",
" :.:;;:::;';;''::::;;:;; ",
" ,.:;+:';;:;'''::','::::: ",
" ,,;;,;;:;':::;';''+;:,,. ",
" ::;+`;;;;:':::;::;'',.:: ",
" :,:;' '''';;;;''':,;';,,, ",
" ,;;;' '::::::::::':'';.. ",
" ::;' ;;;;;;;;;;';;',,:. ",
" ,..: `';;;';;;:;::';,,. ",
" ;:::; ;;;;;;;:::::'...` ",
" ,.,,: ;;;;;;;::::::,,, ",
" :::; ;;;;;;:::;:;;::: ",
" .;`` :;;;;;;;;+:;;;;; ",
" :;;;;;;;':;:;`.. ",
" ;;';;,;';::: ",
" ;;;+;,';;;:; ",
" `;;;;:;;;;; ",
" ;;;':,;;;' ",
" .;;+;.;;:; ",
" `';', '';' ",
" ;;;;; ;;;; ",
" ';;;; ;;;;; ",
" ';;' `;;;;` ",
]
MESSAGES = [
(6, "Don't worry,"),
(8, "ma'am"),
(16, "I'm from"),
(18, "the Internet!"),
(-1, None),
]
messages = iter(MESSAGES)
next_i, next_msg = next(messages)
for i, line in enumerate(INTERNET_GUY):
if next_i == i:
print(next_msg.center(40), line)
next_i, next_msg = next(messages)
else:
print(' ' * 40, line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment