Mouseover to repel nodes. Adapted from my talk on force layouts. Compare to the canvas version.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.node { | |
stroke-width: 1.5px; | |
} | |
</style> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
content length | |
5073891 | |
cheshire | |
"Elapsed time: 103.332902 msecs" | |
clj-json | |
"Elapsed time: 79.033905 msecs" | |
core.json | |
"Elapsed time: 638.59961 msecs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shuffle(a) { | |
for (let i = a.length; i; i--) { | |
let j = Math.floor(Math.random() * i); | |
[a[i - 1], a[j]] = [a[j], a[i - 1]]; | |
} | |
return a; | |
} | |
function range(n) { | |
return new Array(n).fill(0).map((_, i) => i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function colorCount() { | |
function trim(str) { | |
return str.replace(/^\s+|\s+$/gm, ''); | |
} | |
function toComponents(str) { | |
return str.match(/rgba?\((.+)\)/)[1].split(',').map(s => s.trim()).map(s => parseInt(s, 10)) | |
} | |
function componentToHex(c) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Usage: elapsed_by_keyword path/to/output.xml | |
Reads result of a test run from Robot output file | |
and outputs "keyword elapsed_time" | |
sorted by the elapsed time in each keyword. | |
""" | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
y | m | d | degree | |
---|---|---|---|---|
1948 | 9 | 3 | 19.1 | |
1948 | 9 | 4 | 21.1 | |
1948 | 9 | 5 | 20.1 | |
1948 | 9 | 6 | 19.1 | |
1948 | 9 | 7 | 15.2 | |
1948 | 9 | 8 | 18.1 | |
1948 | 9 | 9 | 22.1 | |
1948 | 9 | 10 | 25.2 | |
1948 | 9 | 11 | 26.3 |
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"","Series 1","Series 2","Series 3","Series 4","Series 5","Series 6","Series 7","Series 8","Series 9","Series 10","Series 11","Series 12","Series 13","Series 14","Series 15","Series 16","Series 17","Series 18","Series 19","Series 20","Series 21","Series 22","Series 23" | |
"1",-1.52638379307633,-1.83878434075978,-0.906173265867607,2.89620549217749,-0.697546956947543,-0.295814983336317,-0.815041680432233,1.70581589765478,1.23810398810873,0.101148935398539,4.17729001128286,0.160389526509387,0.195972137512933,1.65265219728888,1.62410405026759,-0.49267407814887,-0.455887270569605,3.7446321600723,0.583349853741263,-1.61125561789179,1.8916310785271,2.14386094737502,-1.4686715046996 | |
"2",1.47138909041492,1.04417770638059,-0.664747468541355,1.81424724207809,-0.0998763716001783,0.341366544564051,-0.376621810872218,0.339699836932428,-1.86772583000559,1.16190861510723,0.693450637066536,-0.869666119854587,0.410045351661702,-0.0171653899406162,-0.0312663435852269,2.69597689435474,0.0368781307637233,1.44650628823362,-0.39863928 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Series 1 | ||
---|---|---|
1 | 4.15958780843744 | |
2 | 1.63873028828538 | |
3 | 0.808056534758816 | |
4 | -3.57917802735856 | |
5 | -2.28096957572749 | |
6 | -0.239099580918422 | |
7 | 3.95655522885885 | |
8 | 3.01897073368165 | |
9 | 0.915924677901633 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0.4668,0.4945,0.6675,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0.354,0.4484,0.5602,0.666,null,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0.2421,0.2826,0.5497,0.6138,0.7884,0.8784,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0.2565,0.4497,0.5114,0.7297,0.8703,1.0492,null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0.2468,0.4545,0.6246,0.7119,0.7989,1.1023,1.2596,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0.1683,0.2022,0.4556,0.602,0.625,0.8454,1.0505,1.2883,null,null,null,null,nu |
OlderNewer