Skip to content

Instantly share code, notes, and snippets.

View jz-feng's full-sized avatar

Jerry Feng jz-feng

View GitHub Profile
from datetime import datetime
from datetime import timedelta
from itertools import islice
from os import walk
import csv
import json
import sys
# --histo for simple msg frequency from a particular chat (point it to the specific directory)
# --ts for time series data, ie 2d array of [date, person]
def meme():
word = raw_input("enter word: ")
for c in word:
print c.upper(), " ",
print
print
for i, c in enumerate(word[1:-1]):
print c.upper(), " " * ((len(word) - 1) * 4 - 3), word[len(word)-i-2].upper()
print
for c in word[::-1]: