Profile cover photo
Profile photo
James Gan
99 followers
99 followers
About
James Gan's posts

Post has attachment
James Gan was tagged in James Gan's album.
Photo

Post has attachment

Post has attachment
Context Manager: One important advantage of Python
In Python, context manager is a relatively new feature which can greatly simplify your program. It's pretty easy to implement the context manager with class or function. Following is a runnable example: 1 from contextlib import contextmanager 2 3 @ contextm...

Post has attachment
Creating Google SpreadSheet and populating data with Python
This task can be completed in two steps. First step, we use Google Drive API to create the spreadsheet. Second step, we use Google Spreadsheet API to modify the spreadsheet. Here is the code: Step 1:     oauthToken = gdata.gauth.TwoLeggedOAuthHmacToken( con...
Wait while more posts are being loaded