Skip to content

Instantly share code, notes, and snippets.

View mr-katsini's full-sized avatar
:shipit:
Something big is on the way!

Giannis Katsini mr-katsini

:shipit:
Something big is on the way!
  • South Africa
View GitHub Profile
@mr-katsini
mr-katsini / chinese-mafia.py
Created October 19, 2018 20:39
Print the chinese mafia in the terminal. Very fun to add when someone types the wrong sudoer password :P
mafia = 2
left = '(-.'
right = '.-)'
left_side = ""
right_side = ""
for i in range(0, mafia):
left_side = "{}{}".format(left_side, left)
@mr-katsini
mr-katsini / chinese-mafia.py
Created October 19, 2018 20:38
Print the chinese mafia in the terminal.
mafia = 2
left = '(-.'
right = '.-)'
left_side = ""
right_side = ""
for i in range(0, mafia):
left_side = "{}{}".format(left_side, left)
@mr-katsini
mr-katsini / jpeg-to-ascii.py
Created October 19, 2018 20:37
Easily convert a JPEG image file to an ASCII text file
from PIL import Image
from bisect import bisect
def main():
gray_scale = {
8: '@',
7: '#',
6: '£',