Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bjorngi on github.
  • I am bjorngi (https://keybase.io/bjorngi) on keybase.
  • I have a public key whose fingerprint is 3DE0 B865 F897 51AF E009 B112 72D8 6195 9C5F E893

To claim this, I am signing this object:

@bjorngi
bjorngi / _.md
Created June 13, 2015 23:29
nvd3 pie
@bjorngi
bjorngi / _.md
Last active August 29, 2015 14:25
fml
@bjorngi
bjorngi / _.md
Last active September 15, 2015 06:52
worktimer
@bjorngi
bjorngi / source.js
Last active November 24, 2021 01:40
Moving xAxis along with line
(function() {
var n = 243,
duration = 750,
now = new Date(Date.now() - duration),
count = 0,
data = d3.range(n).map(function() { return 0; });
var margin = {top: 6, right: 0, bottom: 20, left: 40},
width = 960 - margin.right,
@bjorngi
bjorngi / _.md
Last active December 14, 2015 13:28
formatdata
@bjorngi
bjorngi / _.md
Last active December 16, 2015 10:41
tree-rect
import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
class NumberCounter extends React.Component {
componentWillMount() {
this.setState({
number: this.props.number
});
}
@bjorngi
bjorngi / _.md
Last active December 24, 2015 08:58
beerquest2015
@bjorngi
bjorngi / _.md
Last active January 13, 2016 18:22
spoonman