Skip to content

Instantly share code, notes, and snippets.

Avatar

James Awesome Morelli JamesAwesome

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jamesawesome on github.
  • I am jamesawesome (https://keybase.io/jamesawesome) on keybase.
  • I have a public key ASC-9UJDpfce1rnHvEqobykYUKohrdtaTj2RGvZTseZEZgo

To claim this, I am signing this object:

@JamesAwesome
JamesAwesome / normalize.py
Created May 23, 2014 18:39
normalize file names recursively
View normalize.py
#!/usr/bin/python3 -tt
import sys, os
def normalize(s):
subs = [ ('. ', '.' ), (' - ','-'), (', ',','), (' + ', '+'),
(' & ', '+'), (' ','_'), ('[',''), (']',''),
('(',''), (')',''), ("'",""), ('"',''),
('#','no'), ('!', ''), ('*', '') ]
for a, b in subs: