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
def init_logging(verbose=False, log_file=None): | |
logger = logging.getLogger() | |
logger.setLevel(logging.DEBUG) | |
if verbose: | |
level = logging.DEBUG | |
else: | |
level = logging.INFO | |
# Start up console handler |
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
# Colors to use for prompts | |
DARK_GREY="\e[30;1m" | |
LIGHT_BLUE="\e[34;1m" | |
RESET_COLORS="\e[0m" | |
# Use git completion only if git is available on system | |
if [ -f ~/.git-completion.bash ] && [ -f `which git` ]; then | |
source ~/.git-completion.bash | |
# Include git info in prompt |
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 | |
# | |
# Parse out top level response names from Meetup.com API documentation | |
import sys | |
import urllib2 | |
from BeautifulSoup import BeautifulSoup | |
url = sys.argv[1] |