Skip to content

Instantly share code, notes, and snippets.

View jstacoder's full-sized avatar
:octocat:
working

Kyle J. Roux jstacoder

:octocat:
working
View GitHub Profile
@jstacoder
jstacoder / make_page.py
Last active August 29, 2015 14:10
programatic page generation with flask-htmlbuilder
#!/usr/bin/python
try:
from htmlbuilder import html
except ImportError:
import sys
print '\n'.join(sys.path)
sys.exit()
from flask import Flask
add_styles = (
@jstacoder
jstacoder / basecamp_requests.py
Created November 24, 2014 09:04
Simple Basecamp Authorization with python
from requests import Session # get the class to subclass
# setup your variables in the class
class BasecampSession(Session):
_username = ''
_password = ''
_basecamp_account_number = ''
_basecamp_api_url = 'https://basecamp.com/{}/api/v1/'
def __init__(username,password,bc_account_number,*args,**kwargs):