Skip to content

Instantly share code, notes, and snippets.

View jrydberg's full-sized avatar

Johan Rydberg jrydberg

View GitHub Profile
@jrydberg
jrydberg / pack-ukijs.py
Created April 21, 2011 17:06
Hack to pack commonjs-modules for ukijs into a single file
# Copyright (C) 2011 Johan Rydberg <[email protected]>
# Released under the Apache 2.0 license.
"""Simple hack to pack together a ukijs application into a single file."""
import re
import os
import cssutils
import base64
import sys
from twisted.internet import task
from twisted.trial import unittest
class Bully(object):
state = 'unknown'
callID = None
def __init__(self, clock, node_id, transport, service):
self.clock = clock