Skip to content

Instantly share code, notes, and snippets.

scape
test
@robhop
robhop / .block
Last active August 16, 2018 12:05
Naive path graph grouping
license: gpl-3.0
@robhop
robhop / .block
Last active August 13, 2018 22:22
IGC
test
[{"la":60.645583333333335,"lo":6.407766666666666,"ts":1527332356000,"a":775},{"la":60.645583333333335,"lo":6.407783333333334,"ts":1527332357000,"a":776},{"la":60.645583333333335,"lo":6.407783333333334,"ts":1527332358000,"a":776},{"la":60.645583333333335,"lo":6.407783333333334,"ts":1527332359000,"a":775},{"la":60.645583333333335,"lo":6.4078,"ts":1527332360000,"a":776},{"la":60.645583333333335,"lo":6.4078,"ts":1527332361000,"a":776},{"la":60.64556666666667,"lo":6.407816666666666,"ts":1527332362000,"a":776},{"la":60.64556666666667,"lo":6.407816666666666,"ts":1527332363000,"a":776},{"la":60.64556666666667,"lo":6.407816666666666,"ts":1527332364000,"a":777},{"la":60.64556666666667,"lo":6.407816666666666,"ts":1527332365000,"a":777},{"la":60.64556666666667,"lo":6.407816666666666,"ts":1527332366000,"a":777},{"la":60.64556666666667,"lo":6.4078333333333335,"ts":1527332367000,"a":777},{"la":60.64556666666667,"lo":6.4078333333333335,"ts":1527332368000,"a":777},{"la":60.64556666666667,"lo":6.40785,"ts":1527332369000,"a":77
@robhop
robhop / index.html
Last active August 8, 2018 19:29
Traverse array of nodes.
<!DOCTYPE html>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script>
var n = 25;
var d = 5;
var a = d3.range(d);
@robhop
robhop / .block
Last active August 16, 2018 11:04
A brute-force approact to longest distance between n points.
license: gpl-3.0
@robhop
robhop / .block
Last active August 8, 2018 11:49
Longest distance three points
license: gpl-3.0
@robhop
robhop / .block
Last active August 8, 2018 09:21
Longest distance two points
license: gpl-3.0
@robhop
robhop / .block
Last active August 2, 2018 09:19 — forked from mbostock/.block
Norwegian unemployment 2017
license: gpl-3.0
height: 960