Skip to content

Instantly share code, notes, and snippets.

View jshook's full-sized avatar

Jonathan Shook jshook

View GitHub Profile
- First High Snake Lord of Waterdeep
- Prime Vizier of the Yuan Ti Purebloods in Waterdeep
- First Ethereal Warrior Lord of Waterdeep
- Seargent of Snake Arms
- Lord of Snake Arms
@jshook
jshook / retail.metagener
Created March 2, 2015 06:48
retail.metagener 2015-03-01
// define a sampler named "item_scan" which samples from the item_scan entity type
sampler retail.item_scans : retail.item_scans <- murmur3();
entity retail.item_scans pop=1000000000 // define a data type of item_scan, with 10E9 unique samples
// create a timestamp, advancing by sampleid * 1000 (1000 millis)
// with the beginning starting in year 2015
field scantime : timestamp <- sampleid(); multiply(1000); dateshift(2015);
// Hash the sampleid, sample from product_ids with uniform distribution
field product_id:text <- murmur3(); filesample(product_ids.txt,uniform);
sampler retail.stores : retail.stores <- murmur3();