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
(school) PS C:\Users\Dave\Documents\Projects\MelbDjango\wibble> history | |
Id CommandLine | |
-- ----------- | |
1 cd C:\Users\Dave\Documents\Projects | |
2 mkdir MelbDjango | |
3 cd .\MelbDjango | |
4 python | |
5 pip | |
6 C:\Python27\Scripts\pip.exe |
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
from requests_oauthlib import OAuth2Session | |
from flask import Flask, request, redirect, session, url_for | |
from flask.json import jsonify | |
import os | |
from uuid import uuid4 | |
#from urlparse import urlparse, urljoin | |
app = Flask(__name__) | |
# This information is obtained upon registration of a new GitHub OAuth |
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
import select | |
import datetime | |
import psycopg2 | |
import psycopg2.extensions | |
from sqlalchemy import create_engine, text | |
engine = create_engine("postgresql+psycopg2://vagrant@/postgres") |