Skip to content

Instantly share code, notes, and snippets.

View akollegger's full-sized avatar

Andreas Kollegger akollegger

View GitHub Profile
@akollegger
akollegger / .block
Created August 30, 2017 20:40
D3v4 Selectable, Draggable, Zoomable Force Directed Graph
license: mit
@akollegger
akollegger / .block
Last active September 4, 2017 09:39
Bloom Chart Hex Binning
license: mit
@akollegger
akollegger / .block
Created January 10, 2018 07:43
Zoomable Circle Packing
license: gpl-3.0
height: 960
@akollegger
akollegger / .block
Last active January 22, 2018 08:48
Single Axis Force Layout
license: gpl-3.0
height: 600
@akollegger
akollegger / .block
Created January 22, 2018 10:37
Single Axis Force Layout
license: gpl-3.0
height: 600
@akollegger
akollegger / .block
Last active January 22, 2018 10:54
Radial Force Layout
license: gpl-3.0
height: 600
@akollegger
akollegger / index.html
Created November 30, 2018 16:03 — forked from Keith-Morris/index.html
three.js css3d - periodic table. info.
<div id="container"></div>
<div id="menu">
<button id="table">TABLE</button>
<button id="sphere">SPHERE</button>
<button id="helix">HELIX</button>
<button id="grid">GRID</button>
</div>
node {
diameter: 50px;
color: #A5ABB6;
border-color: #9AA1AC;
border-width: 2px;
text-color-internal: #FFFFFF;
font-size: 10px;
}
relationship {
color: #A5ABB6;
@akollegger
akollegger / graph-exchange-format.gram
Last active August 30, 2019 12:27
Gram - a lightweight graph exchange format
// gram is a lightweight graph exchange format.
//
// gram is a series of path updates.
//
// identified path elements may be introduced and referenced in a later update
// node shapes
() // anonymous node
(a) // identified node
(1) // numerically identified node
class GraphElementEncoder(json.JSONEncoder):
def default(self,obj):
if isinstance(obj, graph.Node):
return {
"element_id": obj.element_id,
"labels": list(obj.labels),
"properties": {k:v for k,v in obj.items()}
}
elif isinstance(obj, graph.Relationship):
return {