This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am rajas on github. | |
* I am rajajs (https://keybase.io/rajajs) on keybase. | |
* I have a public key ASBtlqYbuKsrxCs8Y06ony13_WQ9rPGxiR6xAdXMAan16Qo | |
To claim this, I am signing this object: |
This file contains 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/env python | |
from calendar import monthrange | |
from datetime import date | |
def month_has_31(yr, mth): | |
""" | |
Does the month have 31 days? | |
""" |
This file contains 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 | |
# Raja Selvaraj <rajajs at gmail> | |
""" | |
Demonstrate use of pymongo to connect to a mongodb database on a hosted server, | |
specifically mongolab | |
""" | |
# Use a database already created on mongolab |