Skip to content

Instantly share code, notes, and snippets.

@pholas
pholas / .gitignore
Created November 7, 2016 08:42
.gitignore for Xcode 8 and Swift 3
## OS X files
.DS_Store
.DS_Store?
.Trashes
.Spotlight-V100
*.swp
## Xcode build files
DerivedData/
build/
@dhrrgn
dhrrgn / debug_stuff.py
Last active January 28, 2024 21:25
A handy SQL debug function for Flask-SQLAlchemy
from . import app
from flask.ext.sqlalchemy import get_debug_queries
if app.debug:
app.after_request(sql_debug)
def sql_debug(response):
queries = list(get_debug_queries())
query_str = ''