Skip to content

Instantly share code, notes, and snippets.

View stevestock's full-sized avatar

Steven Stockhamer stevestock

View GitHub Profile
@stevestock
stevestock / caesar.py
Last active July 22, 2018 01:21
caesar.py
import string
def caesar(text, shift):
intab = string.ascii_letters
outtab = string.ascii_lowercase[shift:] + string.ascii_lowercase[:shift] \
+ string.ascii_uppercase[shift:] + string.ascii_uppercase[:shift]
trantab = str.maketrans(intab, outtab)
return text.translate(trantab)
@stevestock
stevestock / makefile
Last active April 6, 2018 20:26
Makefile Example
# from: https://pastebin.com/raw/g8QqfMTT
# discussion: https://www.reddit.com/r/programming/comments/7lqw9b/a_simple_makefile_is_a_unicorn/
# http://www.evanjones.ca/makefile-dependencies.html
# https://www.reddit.com/r/programming/comments/4nfade/easymake_a_generic_makefile_for_those_who_hate_to/
# http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/#tldr
# http://nuclear.mutantstargoat.com/articles/make/
# https://spin.atomicobject.com/2016/08/26/makefile-c-projects/
SOURCES_CPP := file1cpp.cpp \