Skip to content

Instantly share code, notes, and snippets.

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl -L http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl -L https://www.npmjs.org/install.sh | sh
@zawarudo
zawarudo / index.html
Created January 28, 2014 05:13
Roadmap plot with ping animation and "zoom" integrated
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
#otherVis {
width: 500px;
height: 200px;
background: #F00;
display: none;
@zawarudo
zawarudo / index.html
Created January 27, 2014 04:01
Line plot with node click animation
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
text {
fill: #ccc;
}
path {
fill: none;
@zawarudo
zawarudo / index.html
Created October 21, 2013 14:23
D3.js bar graph animates on enter.
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<div id="chart">
</div>
<script type="text/javascript">
initial();
@zawarudo
zawarudo / index.html
Last active December 25, 2015 09:29
D3 ping effect on mouseover.
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<div id="chart">
</div>
<script type="text/javascript">
var margin = {top: 50, right: 50, bottom: 50, left: 50},
w = 960 - margin.left - margin.right,