Skip to content

Instantly share code, notes, and snippets.

View ryanhiebert's full-sized avatar

Ryan Hiebert ryanhiebert

View GitHub Profile
@ulope
ulope / .sh
Created July 18, 2016 15:07
Install Python 3.6.0a3 via pythonz
# Assumes homebrew and pythonz[1] are installed.
brew install openssl
LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" \
pythonz install \
-t cpython \
--url=https://www.python.org/ftp/python/3.6.0/Python-3.6.0a3.tgz \
3.6.0a3
from sqlalchemy import engine
from sqlalchemy import event
class DbStats():
def __init__(self):
self.clear()
def clear(self):
self.total_queries = 0
self.total_time = 0
@thom-nic
thom-nic / cx_oracle_instructions.md
Created July 16, 2013 19:14
Installing CX Oracle for Python & Mac OS X. Instructions exist around the web, but they seem to be piecemeal and incomplete.