This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Arguments are the parameters of a deterministic finite automaton: | |
q -- states (list of strings) | |
si -- input alphabet (list of characters) | |
de -- transition function ((index of q),(index of si) --> (index of q)) | |
s -- start state (index of q) | |
f -- accept states (list of (index of q)) | |
Returns a generator function which takes a string and generates successive | |
states (indices of q) as the DFA runs on the string. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"tags": [ | |
"Others", | |
"Tech startups", | |
"Homes", | |
"Offices", | |
"Corporate office", | |
"Work", | |
"Services", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"tags": [ | |
"Japanese restaurants", | |
"Restaurant", | |
"Sushi", | |
"Bar", | |
"Food", | |
"Food & drink", | |
"Japanese restaurant" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tags": [ | |
"Japanese restaurants", | |
"Restaurant", | |
"Sushi", | |
"Bar", | |
"Food", | |
"Food & drink", | |
"Japanese restaurant" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "event", | |
"status": "active", | |
"image_url": null, | |
"expiration_date": "2011-10-01T13:00:00-07:00", | |
"place": { | |
"name": "Nelson Blue", | |
"lon": -74.001573, | |
"city": "New York", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "event", | |
"status": "active", | |
"image_url": "http://s3.amazonaws.com/prestigedevelopment/beta/offer_photos/4e5f502fceb01f000100139f.jpg?1314869295", | |
"place": { | |
"name": "Chelsea Piers - Pier 62", | |
"lon": -74.005973, | |
"city": "New York", | |
"address": ", ", | |
"postal_code": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Concurrent | |
import Control.Monad | |
import Data.Time.Clock.POSIX | |
import System.Environment | |
main :: IO () | |
main = do | |
-- setup | |
n <- getArgs >>= return . read . head | |
start <- newEmptyMVar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cabal-dev/ | |
dist/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module Main (main) where | |
import Control.Concurrent (forkIO) | |
import Control.Monad (unless) | |
import Data.ByteString.Char8 (pack) | |
import System.Environment (getArgs) | |
import System.Timeout (timeout) | |
import System.ZMQ3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea/ | |
*.iml | |
target/ |
OlderNewer