Skip to content

Instantly share code, notes, and snippets.

View brianbancroft's full-sized avatar
🌲

Brian Bancroft brianbancroft

🌲
View GitHub Profile
@brianbancroft
brianbancroft / data.tsv
Last active November 15, 2016 19:19
d3LineChartObject
date close
24-Apr-07 93.24
25-Apr-07 95.35
26-Apr-07 98.84
27-Apr-07 99.92
30-Apr-07 99.80
1-May-07 99.47
2-May-07 100.39
3-May-07 100.40
4-May-07 100.81
@brianbancroft
brianbancroft / .block
Last active November 17, 2016 20:39 — forked from mbostock/.block
D3 JS Object Line Chart with ToolTips
license: gpl-3.0
<!DOCTYPE html>
<svg width="960" height="673" stroke="#fff" stroke-width="0.5"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-hsv.v0.1.min.js"></script>
<script src="https://d3js.org/d3-contour.v1.min.js"></script>
<script>
var svg = d3.select("svg"),
width = +svg.attr("width"),
height = +svg.attr("height");
@brianbancroft
brianbancroft / singlePoint.geojson
Created May 21, 2017 15:50
Single GeoJSON Point
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brianbancroft
brianbancroft / badbuffercollection.geojson
Last active May 21, 2017 16:04
Bad GeoJSON example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brianbancroft
brianbancroft / aggregate.js
Last active June 2, 2017 15:37
Learning Center Metrics
// WISTIA API FOR LOADING VIDEOS
/*
https://api.wistia.com/v1/stats/medias/avk9twrrbn.json
for now, video views will be avoided.
*/
@brianbancroft
brianbancroft / edits.json
Last active June 22, 2017 15:25
D3 - Basic Barchart - uses modern function calls
[{
"date": "Bob",
"edits": 32
}, {
"date": "Robin",
"edits": 12
}, {
"date": "Anne",
"edits": 24
}, {
@brianbancroft
brianbancroft / data.json
Last active June 22, 2017 15:43
Double Line graph using JSON
[
{
"date": "1-May-12",
"close": 53.13,
"open": 3.41
}, {
"date": "30-Apr-12",
"close": 54.12,
"open": 4.12
}, {
@brianbancroft
brianbancroft / vscode-styles.css
Created July 24, 2017 13:23 — forked from td0/VSCode-custom.css
vscode-styles for operator mono, fira code ligatures, and oceanic next italic
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'Operator Mono';
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.token.keyword.operator {
font-family: 'Fira Code'
@brianbancroft
brianbancroft / vscode-styles.css
Created July 24, 2017 13:24
vscode-styles for operator mono, fira code ligatures, and oceanic next italic
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'Operator Mono Book';
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.token.keyword.operator {
font-family: 'Fira Code'