Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am imjohsep on github.
  • I am jwatters (https://keybase.io/jwatters) on keybase.
  • I have a public key ASAyu4ol1h8cGLOECPZE2YKUTArDXocrBN2-X8rZQ4H8PAo

To claim this, I am signing this object:

@imjohsep
imjohsep / twitter_oauth.py
Created October 30, 2013 22:27
Twitter Oauth with Tweepy and ConfigParser
import ConfigParser
import tweepy
Twitter Oauth with ConfigParseConfig = ConfigParser.ConfigParser()
Config.read('config.ini')
def ConfigSectionMap(section):
dict1 = {}
options = Config.options(section)
@imjohsep
imjohsep / password_guess.py
Created October 24, 2013 21:27
Written by the Introduction to Python class at Noisebridge during October 23rd's class. I've refactored the our original code, so we now have one function in main running the two game functions and additional comments for each definition.
#!/usr/bin/pyhton
'''
password_guess.py takes a user provided password and gives the next user
3 attempts to correctly guess the password before exiting the script.
'''
def checkpassword(guess, password):
'''
Verifies whether a guess is correct match to a user's password
#!/usr/bin/python
class Toy(object):
inventory = 0
def __init__(self, price, name, quantity):
self.price = price
self.name = name
self.quantity = quantity