Skip to content

Instantly share code, notes, and snippets.

@dougluce
Created August 31, 2016 16:38
Show Gist options
  • Save dougluce/83a627e8d230e4c749aa722ccb0d1845 to your computer and use it in GitHub Desktop.
Save dougluce/83a627e8d230e4c749aa722ccb0d1845 to your computer and use it in GitHub Desktop.
func e(input string) string {
return base64.URLEncoding.EncodeToString([]byte(input))
}
var fixtureFiles = map[string]string{
"digger_static_06-09-16-11:18:48": `josephmaltz 30
josephmaltz 20
robjerfy 50
josephmaltz 10`,
"digger_static_06-09-16-11:19:59": `robjerfy 3
josephmaltz 2
robjerfy 5
josephmaltz 1`,
"plan_static_06-09-16-11:18:48": `5723f6e1b149030b3ec24800 30
5723f6e1b149030b3ec24801 10`,
"plan_static_06-09-16-11:19:59": `5723f6e1b149030b3ec24801 80`,
"device_data_static_06-09-16-11:18:48": e(`["5723f6e1b149030b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"2","Robot",5,"2000"]`) + " w 0.030001\n" +
e(`["5723f6e1b149030b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"2","Robot",5,"2000"]`) + " w 0.030002\n" +
e(`["5723f6e1b149030b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"2","Robot",5,"2000"]`) + " w 0.030003",
"location_data_static_06-09-16-11:18:48": e(`["5723f6e1b149030b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"atlanta","il","us"]`) + " w 0.030004\n" +
e(`["5723f6e1b149030b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"atlanta","il","us"]`) + " w 0.030005\n" +
e(`["5723f6e1b149030b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"atlanta","il","us"]`) + " w 0.030006\n" +
e(`["5723f6e1b1490f0b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"batlanta","ilb","ubs"]`) + " w 0.030007\n" +
e(`["5723f6e1b1490f0b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"batlanta","ilb","ubs"]`) + " w 0.030008\n" +
e(`["5723f6e1b1490f0b3ec24800","josephmaltz","2016-06-07 00:00:00",17,"batlanta","ilb","ubs"]`) + " w 0.030009",
"total_data_static_06-09-16-11:18:48": e(`5723f6e1b149030b3ec24800&josephmaltz&2016-06-07 00:00:00&www%25%25egghero%25%25com&chicken&17&25`) + " c\n" +
e(`5723f6e1b149030b3ec24800&josephmaltz&2016-06-07 00:00:00&www%25%25egghero%25%25com&chicken&17&25`) + " w 0.030010",
"digger_current": "SHOULD NOT TOUCH THIS FILE",
"digger_hist_06-09-16-11:17:49": "SHOULD NOT TOUCH THIS FILE",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment