This file contains 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
#!/usr/bin/env python | |
import urllib2 | |
import json | |
import random | |
import subprocess | |
slave_ip = "10.0.10.1" | |
marathons = ["10.0.10.1", "10.0.10.2"] | |
domain = ".example.com" |
This file contains 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
-- | A simply typed lambda calculus with type reconstruction | |
-- extended with integers and let bindings. | |
-- Using the new Evaluator monad to do the variable generation | |
-- for us. | |
-- No alpha reduction. | |
-- | |
module Lambda where | |
import Evaluator4 |
This file contains 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
-- | A general purpose evaluator; useful for evaluating | |
-- languages/structures that need to: | |
-- * Access an environment | |
-- * Log messages or signal errors | |
-- * Generate free variables | |
-- | |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-} | |
module Evaluator where | |
import Control.Applicative |
This file contains 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
-- | A simply typed lambda calculus with type reconstruction. | |
-- extended with integers and let bindings. | |
-- No alpha reduction. | |
-- | |
module Lambda where | |
import Evaluator | |
import Control.Monad.Writer | |
import Control.Monad.Reader |
This file contains 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
module Lambda where | |
import Evaluator | |
import Control.Monad.Writer | |
import Control.Monad.Reader | |
import qualified Data.Map as M | |
-- | A simply typed lambda calculus, | |
-- extended with integers and let bindings. | |
-- No alpha reduction. |
This file contains 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
-- | Untyped lambda calculus | |
-- | |
import qualified Data.List as L | |
import Data.Char | |
import ParseLib.Abstract | |
import System.Console.Editline.Readline | |
-- * Lexer |