Skip to content

Instantly share code, notes, and snippets.

View wil's full-sized avatar

Wil Tan wil

View GitHub Profile
#!/usr/bin/env python
#
### patch socket and tornado
import gevent.monkey; gevent.monkey.patch_all()
import gtornado.monkey; gtornado.monkey.patch_all()
import tornado.httpserver
import tornado.ioloop
import tornado.options
@wil
wil / echo.c
Created November 12, 2009 15:29 — forked from paulsmith/echo.c
Nothing here, just watching it
/**
* A simple preforking echo server in C.
*
* Building:
*
* $ gcc -Wall -o echo echo.c
*
* Usage:
*
* $ ./echo