Created
November 4, 2015 15:34
-
-
Save blha303/6a796ff17cfc5d5a462c to your computer and use it in GitHub Desktop.
Such pepe
This file contains hidden or 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
| #!/usr/bin/env python | |
| try: | |
| from urllib import urlopen | |
| except: | |
| from urllib.request import urlopen | |
| from colorama import init | |
| init() | |
| colormap = { | |
| ord("0"): "\033[49m", | |
| ord("2"): "\033[42m", | |
| ord("6"): "\033[45m", | |
| ord("7"): "\033[47m", | |
| ord("8"): "\033[40m", | |
| ord("f"): "\033[47m" | |
| } | |
| origpepe = urlopen("https://github.com/kylemsguy/memetest86/raw/master/rarepepe.h").readlines()[1:-1] | |
| pepe = [line.decode('utf-8').strip().replace("0x", "").translate(colormap).split(",") for line in origpepe] | |
| print("\033[49m\n".join(" ".join(line) for line in pepe)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lol