Skip to content

Instantly share code, notes, and snippets.

View fooblahblah's full-sized avatar

Jeff Simpson fooblahblah

View GitHub Profile
{-# 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)
@dwhitney
dwhitney / gist:10489306
Created April 11, 2014 18:15
Node.js Script from Talk
var http = require('http');
var Q = require('q');
var IntensiveFunctions = (function(){
var self = {};
self.randomWalk = function(i){
return Q.fcall(function(){
var total = 0;
@dwhitney
dwhitney / gist:10489490
Created April 11, 2014 18:18
Toy Scala code from talk
package controllers
import play.api._
import play.api.mvc._
import scala.concurrent._
import scala.concurrent.Future._
//import play.api.libs.concurrent.Execution.Implicits._