Skip to content

Instantly share code, notes, and snippets.

Paul Fawkesley paulfurley

Block or report user

Report or block paulfurley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paulfurley
paulfurley / gist:6596fe4166ef7b67ab8e
Created Nov 20, 2015 — forked from methane/gist:2185380
Tornado Example: Delegating an blocking task to a worker thread pool from an asynchronous request handler
View gist:6596fe4166ef7b67ab8e
from time import sleep
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.web import Application, asynchronous, RequestHandler
from multiprocessing.pool import ThreadPool
_workers = ThreadPool(10)
def run_background(func, callback, args=(), kwds={}):
def _callback(result):
View Alien Language solution.py
"""
Alien Language - solution
Google Code Jam 2009 - Qual round
Problem available at
http://code.google.com/codejam/contest/90101/dashboard#s=p0
By Tim Lee, 28/04/14
Input as L D N, followed by D dictionary words, N 'patterns' to decode
"""
You can’t perform that action at this time.