Skip to content

Instantly share code, notes, and snippets.

@jchavarri
jchavarri / gist:951b32b2cab46c8fc0c0737ead638c7b
Created February 11, 2020 19:01
hello-reason 4.06 error
info esy 0.6.0 (using package.json)
info checking https://github.com/ocaml/opam-repository for updates...
info checking https://github.com/esy-ocaml/esy-opam-override for updates...
info resolving esy packages: done
info solving esy constraints: done
info resolving npm packages: done
info fetching: done
info installing: done
info building @opam/uchar@opam:0.0.2@c8218eea
info building @opam/ocamlfind-secondary@opam:1.8.1@9b0e1546
@jchavarri
jchavarri / ranking_short_2.csv
Last active May 10, 2019 12:49
Like ranking_short, but with almost no data
We can't make this file beautiful and searchable because it's too large.
group,variable,value
1525910400000,100,0
1525910400000,99,0
1525910400000,98,0
1525910400000,97,0
1525910400000,96,0
1525910400000,95,0
1525910400000,94,0
1525910400000,93,0
1525910400000,92,0
We can't make this file beautiful and searchable because it's too large.
group,variable,value
1522627200000,100,2229
1522627200000,99,2345
1522627200000,98,2423
1522627200000,97,2332
1522627200000,96,2313
1522627200000,95,2340
1522627200000,94,2292
1522627200000,93,2378
1522627200000,92,2208
Date Time Temperature
2017-01-01 0 2.7
2017-01-01 1 2.5
2017-01-01 2 1.8
2017-01-01 3 1.5
2017-01-01 4 1.8
2017-01-01 5 1.7
2017-01-01 6 1.7
2017-01-01 7 1.7
2017-01-01 8 1.7
@jchavarri
jchavarri / ranking.csv
Created April 5, 2019 10:27
Csv ranking
We can't make this file beautiful and searchable because it's too large.
group,variable,value
1551571200000,99,2288
1551571200000,98,2514
1551571200000,97,2481
1551571200000,96,2583
1551571200000,95,2436
1551571200000,94,2355
1551571200000,93,2354
1551571200000,92,2425
1551571200000,91,2426
@jchavarri
jchavarri / data.json
Created April 5, 2019 10:00
Sample data from d3-heatmap2
{
"rows": [
1962,
1924,
1886,
1848,
1810,
1772,
1734,
1696,
@jchavarri
jchavarri / SlotsInstantiation.re
Created January 7, 2019 16:53
SlotsInstantiation.re
module type SlotsType = {
type t('slot, 'nextSlots);
let create: unit => t('slot, 'nextSlots);
let use:
(~default: 'slot, t('slot, t('slot2, 'nextSlots))) =>
(('slot, 'slot => unit), t('slot2, 'nextSlots));
};
module Slots: SlotsType = {
type t('slot, 'nextSlots) = ref(option(('slot, 'nextSlots)));
@jchavarri
jchavarri / SlotsPassedToUserRender.re
Created January 7, 2019 13:39
SlotsPassedToUserRender.re
module type SlotsType = {
type t('slot, 'nextSlots);
let create: unit => t('slot, 'nextSlots);
let use:
(~default: 'slot, t('slot, t('slot2, 'nextSlots))) =>
('slot, t('slot2, 'nextSlots));
};
module Slots: SlotsType = {
type t('slot, 'nextSlots) = ref(option(('slot, 'nextSlots)));
@jchavarri
jchavarri / SlotsCreateContainsVariables.re
Created January 7, 2019 00:16
SlotsCreateContainsVariables.re
module type SlotsType = {
type t('slot, 'nextSlots);
let create: unit => t('slot, 'nextSlots);
let use:
(~default: 'slot, t('slot, t('slot2, 'nextSlots))) =>
('slot, t('slot2, 'nextSlots));
};
module Slots: SlotsType = {
type t('slot, 'nextSlots) = ref(option(('slot, 'nextSlots)));
@jchavarri
jchavarri / PureSlots.re
Created January 6, 2019 16:01
PureSlots.re
module type SlotsType = {
type t('slot, 'nextSlots);
let create: unit => t('slot, 'nextSlots);
let use:
(
~default: 'slot,
(('slot, t('slot2, 'nextSlots))) => 'c,
t('slot, t('slot2, 'nextSlots))
) =>
('c, 'slot);