Skip to content

Instantly share code, notes, and snippets.

@pram
pram / .block
Created March 15, 2017 19:03
Blocks Graph
license: gpl-3.0
height: 960
@pram
pram / .block
Created March 15, 2017 19:02
Facebook Egonet
license: gpl-3.0
height: 600
border: no
@pram
pram / .block
Created March 15, 2017 19:00
zoomable, draggable force layout with labels
license: mit
border: yes
@pram
pram / .block
Created March 15, 2017 18:58
D3-Force: Split Categorical
license: mit
@pram
pram / .block
Created March 15, 2017 18:57
Force Layout 4.0 test
license: mit
@pram
pram / .block
Created March 15, 2017 18:56
d3-force testing ground
license: gpl-3.0
height: 1030
scrolling: yes
@pram
pram / .block
Created March 15, 2017 18:54
Force-Directed Graph
license: gpl-3.0
@pram
pram / ndx.json
Created December 13, 2016 20:18
dc.js ndx.json
This file has been truncated, but you can view the full file.
[
{
"date": "11/01/1985",
"open": 115.48,
"high": 116.78,
"low": 115.48,
"close": 116.28,
"volume": 900900,
"oi": 0
},
@pram
pram / data.json
Created November 26, 2016 16:03
data
{"directed": false, "graph": [["node_default", {}], ["name", "()_with_int_labels"], ["edge_default", {}]], "nodes": [{"id": 0, "Year": 1996, "Venue": "SWAT", "cYear": 1996, "label": "The randomized complexity of maintaining the minimum"}, {"id": 1, "Year": 1998, "Venue": "SWAT", "cYear": 1998, "label": "Probabilistic data structures for priority queues"}, {"id": 2, "Year": 1992, "Venue": "SWAT", "cYear": 1992, "label": "Fractional cascading simplified"}, {"id": 3, "Year": 2002, "Venue": "SWAT", "cYear": 2002, "label": "Paging on a RAM with Limited Resources"}, {"id": 4, "Year": 1999, "Venue": "WADS", "cYear": 1999, "label": "Online Data Structures in External Memory"}, {"id": 5, "Year": 1996, "Venue": "SWAT", "cYear": 1996, "label": "Binary search trees: How low can you go?"}, {"id": 6, "Year": 1994, "Venue": "SWAT", "cYear": 1994, "label": "Randomized geometric algorithms (abstract)"}, {"id": 7, "Year": 1989, "Venue": "WADS", "cYear": 1990, "label": "Improving partial rebuilding by using simple balance crite
@pram
pram / tracker.jsx
Created August 25, 2016 06:34
Meteor tracker example
componentDidMount() {
this.sub = Meteor.subscribe("itemsRefs", (err) => {
let item = Items.findOne(this.props.id) || {};
let state = _.pick(item, "name", "descr");
this.setState(state);
});
}