Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am cmkpl on github.
  • I am haroldchan (https://keybase.io/haroldchan) on keybase.
  • I have a public key whose fingerprint is 676F C7D6 8D1B 91DD 75A0 65C4 D570 D988 4CC9 547E

To claim this, I am signing this object:

import json
import urllib2
import MySQLdb
print "Connecting to database"
conn = MySQLdb.connect(host="localhost", user="user", passwd="passwd", db="db", use_unicode=True, charset="utf8")
cursor = conn.cursor()
print "Connected"
while True: