Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am bkey on github.
* I am bkey (https://keybase.io/bkey) on keybase.
* I have a public key ASBfeQsmZvQUN2XOSn-okAtUA15qz2LDO5YmDhqh-S0SFwo
To claim this, I am signing this object:
@bkey
bkey / index.html
Created March 25, 2016 03:08
data science from scratch line graph
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
@bkey
bkey / index.html
Last active March 24, 2016 01:35
data science from scratch scatter plot
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
@bkey
bkey / data.tsv
Last active March 23, 2016 11:48
data science from scratch bar graph
movie num_oscars
Annie Hall 5
Ben-Hur 11
Casablanca 3
Gandhi 8
West Side Story 10
@bkey
bkey / climate-divisions.json
Last active October 26, 2015 02:29
drought maps by year
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bkey
bkey / index.html
Last active March 23, 2016 12:00
updating circle chart
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css">
/*css to go here*/
body {
font-family: arial, sans;
/*width: 720px;*/
text-align: center;
margin: 20px auto;
}
@bkey
bkey / incomes.csv
Last active March 23, 2016 12:01
updating line chart
val cutoff year country
6910 cop5 1981 Australia
6864 cop5 1985 Australia
6555 cop5 1989 Australia
6551 cop5 1995 Australia
7002 cop5 2001 Australia
7090 cop5 2003 Australia
8818 cop5 1987 Austria
8744 cop5 1994 Austria
5813 cop5 1995 Austria
<html>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: 'arial', sans-serif;
font-size: 12px;
}.person-guess {
fill: purple;
stroke: purple;
stroke-width: 2px;
@bkey
bkey / barley.tsv
Last active March 23, 2016 12:02
barley data three ways
yield variety year site
27 Manchuria 1931 University Farm
48.86667 Manchuria 1931 Waseca
27.43334 Manchuria 1931 Morris
39.93333 Manchuria 1931 Crookston
32.96667 Manchuria 1931 Grand Rapids
28.96667 Manchuria 1931 Duluth
43.06666 Glabron 1931 University Farm
55.2 Glabron 1931 Waseca
28.76667 Glabron 1931 Morris