Skip to content

Instantly share code, notes, and snippets.

def runserver(port=5000, profile_log=None):
"""Runs a development server."""
from gevent.wsgi import WSGIServer
from werkzeug.serving import run_with_reloader
from werkzeug.debug import DebuggedApplication
from werkzeug.contrib.profiler import ProfilerMiddleware
port = int(port)
if profile_log:
@wolf0403
wolf0403 / json.l
Created February 26, 2012 22:08 — forked from justjkk/LICENSE
Parsing JSON with lex and yacc
%{
#include<stdio.h>
#include "y.tab.h"
char *strclone(char *str);
/*
#define STRING "str"
#define NUMBER "number"
#define O_BEGIN "o_begin"
#define O_END "o_end"
#define A_BEGIN "a_begin"