Skip to content

Instantly share code, notes, and snippets.

View RajaS's full-sized avatar

Raja Selvaraj RajaS

View GitHub Profile
### 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:
@RajaS
RajaS / moneybags.py
Created October 5, 2012 14:00
Find how many "moneybag months" there are since 1900
#!/usr/bin/env python
from calendar import monthrange
from datetime import date
def month_has_31(yr, mth):
"""
Does the month have 31 days?
"""
@RajaS
RajaS / mongolab_demo.py
Created August 8, 2011 07:27
Using pymongo with mongolab
#!/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