This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.darkcoding.net/software/markdown-quick-reference/ | |
Headers | |
# Level one header # | |
Level one header | |
### Level three header ### | |
Level three header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cherrypy | |
import simplejson | |
class Root(object): | |
@cherrypy.expose | |
def update(self): | |
cl = cherrypy.request.headers['Content-Length'] | |
rawbody = cherrypy.request.body.read(int(cl)) | |
body = simplejson.loads(rawbody) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import smtplib | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email import Encoders | |
import os | |
gmail_user = "[email protected]" |
OlderNewer