Skip to content

Instantly share code, notes, and snippets.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@DinoJay
DinoJay / README.md
Created October 8, 2015 17:25 — forked from mbostock/.block
Margin Convention

First define the margin object with properties for the four sides (clockwise from the top, as in CSS).

var margin = {top: 20, right: 10, bottom: 20, left: 10};

Then define width and height as the inner dimensions of the chart area.

var width = 960 - margin.left - margin.right,
    height = 500 - margin.top - margin.bottom;

Lastly, define svg as a G element that translates the origin to the top-left corner of the chart area.

@DinoJay
DinoJay / .block
Created March 11, 2016 10:18
SVG Semantic Zooming
license: gpl-3.0
@DinoJay
DinoJay / README.md
Created March 11, 2016 10:22
fresh block
@DinoJay
DinoJay / README.md
Created March 11, 2016 11:01
fresh block
@DinoJay
DinoJay / .block
Last active March 16, 2016 19:46
Stacked Radial Area
license: gpl-3.0
@DinoJay
DinoJay / README.md
Created March 16, 2016 17:30
fresh block
@DinoJay
DinoJay / README.md
Created March 20, 2016 16:28
Contour Test using Jason Davis implementation with D3
@DinoJay
DinoJay / README.md
Last active June 20, 2016 17:02
Simple stream + interpolation, layout offset & axes
@DinoJay
DinoJay / .block
Last active June 29, 2016 13:38
Modifying a Force Layout
license: gpl-3.0