Skip to content

Instantly share code, notes, and snippets.

@kantord
kantord / milestone0.js
Created June 11, 2018 19:31
milestone0.js
// @flow
type Environment = {
+left: ?number,
+right: ?number,
};
describe(
'Min',
Suite.Function(
@kantord
kantord / milestone1.js
Created June 11, 2018 19:27
milestone1.js
// @flow
type Environment = {
+left: ?number,
+right: ?number,
}
describe(
'Min',
Suite.Function(
@kantord
kantord / milestone2.js
Created June 11, 2018 19:11
milestone2.js
// @flow
type Environment = {
+left: ?number,
+right: ?number,
}
describe(
'Min',
Suite.Function(
@kantord
kantord / milestone3.js
Created June 11, 2018 19:01
milestone3.js
// @flow
type Environment = {
+left: ?number,
+right: ?number,
}
type AssertionValues = {
+result: ?number,
}
dashboard "Example":
-
h1 text: "Lorem ipsum dolor sit amet"
@kantord
kantord / dashboard.yml
Last active March 9, 2018 19:55
variables example
dashboard "Food":
- h1 text: Food
- dropdown macro=Protein:
- {"value": "Protein", "text": "Protein"}
- {"value": "Fat", "text": "Fat"}
- {"value": "Sugar", "text": "Sugar"}
- {"value": "Other carbs", "text": "Other carbs"}
- h2 text: By ${macro} content
- bar chart:
- attr:query: '{"columns": [to_entries | .[] | [.key, (.value | .[] | select(.[0] == "${macro}"))[1] ]]}'
@kantord
kantord / dashboard.yml
Created March 7, 2018 09:43
bad yaml format example
dashboard "Variables example":
- h1 text: Variables Example
- dropdown my_var=pie:
- {"value": pie, "text": "Pie chart"}
- {"value": bar, "text": "Bar chart"}
p text: "Selected chart type: ${my_var}"
dashboard "Variables example":
- h1 text: Variables Example
- dropdown my_var=pie:
- {"value": pie, "text": "Pie chart"}
- {"value": bar, "text": "Bar chart"}
- p text: "Selected chart type: ${my_var}"
year count(*) war_deaths_per_billion_person
1400 81 10000.0
1494 137 7267.8730347078
1496 182 10237.3792151449
1528 161 43621.2992645672
1648 77 794106.795723311
1660 189 96384.1853035144
1661 184 101298.815269855
1768 92 16056.2286424355
1769 91 15985.4635428748
year war_deaths_per_billion_person
1776 33109.8109810981
1777 6081.1113600717
1778 12190.9861668898
1779 12139.5245501
1780 15075.2212389381
1781 15838.2903723287
1782 15772.2685388328
1783 15239.2396766441
1784 2991.7319408181