Skip to content

Instantly share code, notes, and snippets.

View ChristianCme's full-sized avatar

Christian Cmehil-Warn ChristianCme

  • Cambridge, MA
View GitHub Profile
from io import StringIO
from html.parser import HTMLParser
class MLStripper(HTMLParser):
def __init__(self):
super().__init__()
self.reset()
self.strict = False
self.convert_charrefs= True
self.text = StringIO()
#Get API Keys, creates file if doesn't exist
try:
f = open('keys.json', 'r')
except:
print("Insert AN key into keys.json")
f = open('keys.json', 'w')
#Add keys as needed
f.write('{"api_key": "API_KEY"}')
f.close()
exit()

Keybase proof

I hereby claim:

  • I am christiancme on github.
  • I am christiancw (https://keybase.io/christiancw) on keybase.
  • I have a public key ASC1CK-QGMWCIfsoKAKekLn2FexpCitVpxqnnJRbBHSl8go

To claim this, I am signing this object:

@ChristianCme
ChristianCme / .gitignore
Created February 14, 2018 04:50
gitignore for Mac, Netbeans, Java
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)