Skip to content

Instantly share code, notes, and snippets.

@LewisJEllis
LewisJEllis / gist:1ac2e10e9309b3f59017
Last active Jul 2, 2016
Highland reduce example
View gist:1ac2e10e9309b3f59017
var express = require('express');
var _ = require('highland');
var fs = require('fs');
var app = express();
function chain(s, f) {
return s.flatMap(_.wrapCallback(f))
}
app.post('/process-file', function(req, res) {
@LewisJEllis
LewisJEllis / workshop.py
Created Jul 19, 2013
Python crash course workshop given at Canada/USA Mathcamp 2013
View workshop.py
# CanadaUSA Mathcamp Python Workshop
# Given by Lewis Ellis and Lucas Garron
print 'hello'
a = 3
print a
a = 5
print a
b = 3.6