Skip to content

Instantly share code, notes, and snippets.


Jeff Simpson fooblahblah

View GitHub Profile
dwhitney / gist:10489490
Created Apr 11, 2014
Toy Scala code from talk
View gist:10489490
package controllers
import play.api._
import play.api.mvc._
import scala.concurrent._
import scala.concurrent.Future._
//import play.api.libs.concurrent.Execution.Implicits._
dwhitney / gist:10489306
Created Apr 11, 2014
Node.js Script from Talk
View gist:10489306
var http = require('http');
var Q = require('q');
var IntensiveFunctions = (function(){
var self = {};
self.randomWalk = function(i){
return Q.fcall(function(){
var total = 0;
View RandomWalk.hs
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad.Trans (lift)
import Control.Parallel (par, pseq)
import Data.Text.Lazy (pack)
import System.Random (StdGen, newStdGen, random)
import Web.Scotty (get, scotty, text)