Skip to content

Instantly share code, notes, and snippets.

View glutamate's full-sized avatar
👋

Tom Nielsen glutamate

👋
View GitHub Profile
const xss = require("xss");
const mkTag = (tnm, forceStandAloneClosingTag) => (...args) => {
var body = "";
var attribs = " ";
const ppClasses = cs =>
typeof cs === "string" ? cs : !cs ? "" : cs.filter(c => c).join(" ");
const ppAttrib = ([k, v]) =>
General Thomas von Fisher is alarmed at the number of officers in the Prussian
army who are incapacitated by horse kicks. He charges you, his lead data scientist,
with evaluating the effectiveness of an experimental diet consisting of carrots to
decrease the number of horse kicks.
You receive a table of number of carrots fed to horses, along with the number of
kicks produced by each horse. For instance:
Carrots kicks
3 0

Implement a tool that helps organizations to schedule meetings. Contrary to Doodle.com, this tool will allow arbitrary starting times and durations.

The user should be able to tell the computer:

  • What times various people are available
  • About required meetings, including:
    • In which period the meeting needs to take place
    • Who needs to participate
    • Required duration of the meeting
@glutamate
glutamate / Vagrantfile
Created February 24, 2014 13:20
Vagrantfile for minimal haskell development environment
$script = <<SCRIPT
sed -i -e 's/us.archive.ubuntu.com/gb.archive.ubuntu.com/g' /etc/apt/sources.list
apt-get update
apt-get install -y build-essential libedit2 libgmp3-dev libgmp3c2 zlib1g-dev wget zile git
if [ ! `which ghc` ]; then