The code from @ccsevers and mine talk at SF-Scala