Skip to content

Instantly share code, notes, and snippets.

@webmanarmy
webmanarmy / gist:5364829
Created April 11, 2013 16:22
Search for TODOs
time ack -a -G '\.js$|.rb$|.css$|.scss$' --ignore-dir=tmp "TODO" | awk '{split($0,a,":"); {print "git blame --date short -L" a[2] ",+1", a[1] | "/bin/sh | cat"}}'
@webmanarmy
webmanarmy / gist:5361160
Created April 11, 2013 06:22
scan for TODO and git blame it
ack --ruby "TODO" | awk '{split($0,a,":"); {print "echo", a[1] "\ngit blame -L" a[2] ",+1", a[1] | "bash"}}'
import tornado.httpserver, tornado.ioloop, tornado.options, tornado.web, os.path
from tornado.options import define, options
define("port", default=8888, help="run on the given port", type=int)
class Application(tornado.web.Application):
def __init__(self):
handlers = [
(r"/", HomeHandler),
(r"/upload", UploadHandler)