Skip to content

Instantly share code, notes, and snippets.

View DrGonzo's full-sized avatar

Evgeniy Zakharochkin DrGonzo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am DrGonzo on github.
  • I am speedpoke (https://keybase.io/speedpoke) on keybase.
  • I have a public key whose fingerprint is FF57 7E6B 0FB7 6093 3A19 C892 4EBB 8382 A46F 8422

To claim this, I am signing this object:

class FileReader:
def __init__(self, fp):
self.fp = fp
def read_callback(self, size):
return self.fp.read(size)
def curl_upload(f, u):
c = pycurl.Curl()
c.setopt(pycurl.URL, u)
c.setopt(pycurl.UPLOAD, 1)