OpenBeerDB.com has a list of 1400+ breweries and 5900+ beers. Here’s a graph of the first 50 breweries from that list. The graph makes beer recommendations based on beer style, beer category, location, and alcohol content.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<script src="http://d3js.org/d3.v3.min.js" ></script> | |
<style> | |
.clock { | |
fill: white; | |
stroke: black; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<script src="http://d3js.org/d3.v3.min.js" ></script> | |
<style> | |
svg { | |
border: 1px solid black; | |
display: block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Chart = function() { | |
var width, height, barPadding, factor, len, svg; | |
var addComma = d3.format("0,000"); | |
var init = function(options) { | |
width = options.width || 1000; | |
height = options.height || 1000; | |
barPadding = options.barPadding || 1; | |
factor = options.factor || 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Chart = function() { | |
var width, | |
height, | |
barPadding, | |
len, | |
svg, | |
padding, | |
yScale, | |
xScale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<h1>National Parks Visitors vs Campers</h1> | |
<p>This graph shows the total number of visitors (x axis) vs the total number of campers (y axis) at the various National Parks in 2014. The parks with no campers are marked in red.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a=true; | |
function f() { | |
console.log(a); | |
if (false) { var a = false; } | |
}; | |
f(); | |
// https://twitter.com/axiomer/status/614058868503642112 |
Instead of directly downloading Node, it's recommended to install a Node version manager that lets you install and manage multiple versions of Node.
Use nvm
https://github.com/creationix/nvm.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "airbnb/legacy", | |
"rules": { | |
"func-names": 0, | |
"no-else-return": 0, | |
"no-param-reassign": 0 | |
} | |
} |
OlderNewer