Skip to content

Instantly share code, notes, and snippets.

View adamserafini's full-sized avatar
🦩
Flamingo!

Adam Serafini adamserafini

🦩
Flamingo!
View GitHub Profile
cd build/expat-2.1.0 && emconfigure ./configure --disable-shared --prefix=/Users/adam/viz.js/prefix
checking build system type... x86_64-apple-darwin15.0.0
checking host system type... x86_64-apple-darwin15.0.0
checking how to print strings... printf
checking for gcc... /Developer/emsdk_portable/emscripten/1.35.0/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
@adamserafini
adamserafini / python-exceptions.py
Created January 16, 2015 16:01
Python Exceptions
class SuperDuperException(Exception):
pass
def hi():
raise SuperDuperException('aw shucks')
if __name__ == '__main__':
try:
hi()
@adamserafini
adamserafini / logging.py
Created January 28, 2014 15:37
Django logging conf example
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
},
'simple': {
'format': '%(levelname)s %(message)s'
},