Skip to content

Instantly share code, notes, and snippets.

View c-johnson's full-sized avatar

Christopher Johnson c-johnson

View GitHub Profile
function coinflip() {
let string = "";
for (var i = 0; i < 20; i++) {
let flip = Math.round(Math.random());
string+= flip === 1 ? "H" : "T"
}
return string
}
function montecarlo(iters) {
@c-johnson
c-johnson / index.html
Created March 27, 2019 20:50
line-height sized in rem ignores root value
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
<style>
html {
font-size: 4px;
}
@c-johnson
c-johnson / .babelrc
Created December 13, 2017 20:09
Simple Gulp setup with Rollup, Babel, JSX, sourcemaps, and livereload
{
"presets": [
["@babel/preset-env", {
"modules": false
}]
],
"plugins": [["@babel/plugin-transform-react-jsx"]]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
date numRefugees
2011-12-16 8000
2012-01-15 9500
2012-01-19 12249
2012-01-24 12386
2012-01-27 18676
2012-01-31 18861
2012-02-10 18704
2012-02-14 19654
2012-02-17 20043