Last active 1446615322

Such pepe

Steven Smith revised this gist 1446651286. Go to revision

1 file changed, 22 insertions

rarepepe.py(file created)

@@ -0,0 +1,22 @@
1 + #!/usr/bin/env python
2 + try:
3 + from urllib import urlopen
4 + except:
5 + from urllib.request import urlopen
6 +
7 + from colorama import init
8 + init()
9 +
10 + colormap = {
11 + ord("0"): "\033[49m",
12 + ord("2"): "\033[42m",
13 + ord("6"): "\033[45m",
14 + ord("7"): "\033[47m",
15 + ord("8"): "\033[40m",
16 + ord("f"): "\033[47m"
17 + }
18 +
19 + origpepe = urlopen("https://github.com/kylemsguy/memetest86/raw/master/rarepepe.h").readlines()[1:-1]
20 + pepe = [line.decode('utf-8').strip().replace("0x", "").translate(colormap).split(",") for line in origpepe]
21 +
22 + print("\033[49m\n".join(" ".join(line) for line in pepe))
Newer Older