Skip to content

Instantly share code, notes, and snippets.

View futursolo's full-sized avatar
🍮
Pudding!

Kaede Hoshikawa futursolo

🍮
Pudding!
View GitHub Profile
#!/usr/bin/env python
#
# Converts any integer into a base [BASE] number. I have chosen 62
# as it is meant to represent the integers using all the alphanumeric
# characters, [no special characters] = {0..9}, {A..Z}, {a..z}
#
# I plan on using this to shorten the representation of possibly long ids,
# a la url shortenters
#
import tornado.web
from multiprocessing import Pipe
from _multiprocessing import Connection
class MultiprocessApplication(tornado.web.Application):
def __init__(self, *args, **kwargs):
self._conn_main_recv, self._conn_main_send = Pipe()
tornado.web.Application.__init__(self, *args, **kwargs)
def setup(self, ioloop, is_main_process):