Skip to content

Instantly share code, notes, and snippets.

View mdogo's full-sized avatar

Manuel Dominguez mdogo

  • Doofinder
  • Madrid, Spain
View GitHub Profile
@mdogo
mdogo / 0_reuse_code.js
Created October 21, 2015 08:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
import time
from pycallgraph import Config, GlobbingFilter, PyCallGraph
from pycallgraph.output import GraphvizOutput
from django.conf import settings
class CallgraphMiddleware(object):
def process_view(self, request, callback, callback_args, callback_kwargs):
if settings.DEBUG and 'graph' in request.GET:
config = Config(