Skip to content

Instantly share code, notes, and snippets.

View austlane's full-sized avatar
🐍
#!/usr/bin/python3

Austin Lane austlane

🐍
#!/usr/bin/python3
  • Priority Technology Holdings
  • Alpharetta, GA
View GitHub Profile
#!/usr/bin/env python3
import sys
iN_sTrInG = ' '.join(sys.argv[1:])
yEeT_sTrInG = ""
yEeT_sTaTe = False
for cHaRaCtEr in iN_sTrInG:
if cHaRaCtEr.isalpha():
if yEeT_sTaTe:
yEeT_sTrInG = yEeT_sTrInG + cHaRaCtEr.upper()
else:
@austlane
austlane / gen_md5.py
Created July 15, 2016 14:45
Generate an MD5 for every file in the directory (recursively)
import os
import subprocess
ignored_extensions = ('.py', '.md5')
rootdir = os.getcwd()
for subdir, dirs, files in os.walk(os.getcwd()):
for filename in files:
os.chdir(subdir)
relative_path = os.path.normpath(os.path.relpath(os.getcwd(), rootdir))