Skip to content

Instantly share code, notes, and snippets.

@blha303
Created November 4, 2015 15:34
Show Gist options
  • Select an option

  • Save blha303/6a796ff17cfc5d5a462c to your computer and use it in GitHub Desktop.

Select an option

Save blha303/6a796ff17cfc5d5a462c to your computer and use it in GitHub Desktop.
Such pepe
#!/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))
@knight-ryu12
Copy link

lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment