Last active 1446615322

Such pepe

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