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.
{ | |
"extends": "airbnb/legacy", | |
"rules": { | |
"func-names": 0, | |
"no-else-return": 0, | |
"no-param-reassign": 0 | |
} | |
} |
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.
var a=true; | |
function f() { | |
console.log(a); | |
if (false) { var a = false; } | |
}; | |
f(); | |
// https://twitter.com/axiomer/status/614058868503642112 |
<!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> |
var Chart = function() { | |
var width, | |
height, | |
barPadding, | |
len, | |
svg, | |
padding, | |
yScale, | |
xScale; |
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; |
<!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; |
<!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; |
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.