Skip to content

Instantly share code, notes, and snippets.

View foxycode's full-sized avatar

Tomáš Jacík foxycode

View GitHub Profile
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 7, 2024 16:31
set -e, -u, -o, -x pipefail explanation
@calaveraInfo
calaveraInfo / README.md
Last active March 9, 2018 17:44
How to use Czech qualified digital signature in communication with authorities without proprietary software
@methane
methane / gist:2185380
Created March 24, 2012 17:28
Tornado Example: Delegating an blocking task to a worker thread pool from an asynchronous request handler
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):