Skip to content

Instantly share code, notes, and snippets.

Avatar

Gopalakrishna Palem KrishnaPG

View GitHub Profile
View README.md

README is empty

View README.md

README is empty

View README.md

README is empty

View autobahn-singleton-pubsub-server.js
/**
Copyright (c) 2015 My-Classes
http://my-classes.com/2015/10/15/singleton-websocket-publisher-with-autobahn-pubsub-crossbar-io-meta-events/
**/
var debug = autobahn.log.debug;
var globals = {};
globals.pubsubTopic = "pubsub-simulator";
globals.serverStartAttempt = 0;
View automata.py
import bisect
class NFA(object):
EPSILON = object()
ANY = object()
def __init__(self, start_state):
self.transitions = {}
self.final_states = set()
self._start_state = start_state