Skip to content

Instantly share code, notes, and snippets.

@cool-Blue
cool-Blue / .gitignore
Last active September 28, 2015 15:58 — forked from GerHobbelt/.gitignore
d3.js: force layout with self-referencing links
# Editor backup files
*.bak
*~
04ebde07750d6fdd5d1a/
@cool-Blue
cool-Blue / index.html
Last active June 12, 2016 06:12
d3 fdg with generalised drag and zoom background.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FDG with zoom(/drag) on background</title>
<style>
.axis path,
.axis line {
fill: none;
stroke: #fff;
@cool-Blue
cool-Blue / index.html
Last active June 12, 2016 06:09
d3 fdg with font BBox positioning and sizing of nodes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
svg {
outline: 1px solid #282f51;
pointer-events: all;
overflow: visible;
@cool-Blue
cool-Blue / data-generator.js
Last active August 29, 2015 14:26 — forked from m99coder/data-generator.js
D3 Multiline Chart with Data Generator and Path Translation
/**
* Data Generator
*/
var DataGenerator = (function() {
// number of series
var _numberOfSeries = 1;
// number of data points
var _numberOfDataPoints = 40;
@cool-Blue
cool-Blue / index.html
Last active August 29, 2015 14:26
Stratega for managing objects to be only visible on the plot surface
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
body {
margin: 1px;
}
div {
@cool-Blue
cool-Blue / index.html
Last active August 29, 2015 14:25 — forked from bycoffe/index.html
Point-in-polygon
<!doctype html>
<meta charset="utf-8">
<html>
<head>
<style type="text/css">
#canvas {
width: 800px;
height: 400px;
border: 1px solid #666;
}
@cool-Blue
cool-Blue / _.md
Created July 22, 2015 08:02
anim test
@cool-Blue
cool-Blue / .gitignore
Last active August 29, 2015 14:25 — forked from GerHobbelt/.gitignore
d3.js: force layout; click to group/bundle nodes; multiple relations
# Editor backup files
*.bak
*~
@cool-Blue
cool-Blue / data.js
Last active October 26, 2017 08:43
canvas-based-wind-with-d3
dispatch.data([{"12":0.461,"id":1001,"04":0.52,"08":0.478,"x":-86.641,"y":32.539},{"12":0.558,"id":1003,"04":0.539,"08":0.514,"x":-87.725,"y":30.743},{"12":-0.029,"id":1005,"04":0.099,"08":0.015,"x":-85.392,"y":31.877},{"12":0.468,"id":1007,"04":0.445,"08":0.458,"x":-87.128,"y":33},{"12":0.741,"id":1009,"04":0.625,"08":0.695,"x":-86.567,"y":33.983},{"12":-0.528,"id":1011,"04":-0.364,"08":-0.484,"x":-85.716,"y":32.106},{"12":0.075,"id":1013,"04":0.186,"08":0.134,"x":-86.685,"y":31.758},{"12":0.32,"id":1015,"04":0.326,"08":0.325,"x":-85.825,"y":33.776},{"12":0.051,"id":1017,"04":0.175,"08":0.085,"x":-85.39,"y":32.92},{"12":0.55,"id":1019,"04":0.319,"08":0.512,"x":-85.6,"y":34.176},{"12":0.603,"id":1021,"04":0.542,"08":0.578,"x":-86.718,"y":32.855},{"12":0.046,"id":1023,"04":0.082,"08":0.074,"x":-88.263,"y":32.023},{"12":0.083,"id":1025,"04":0.185,"08":0.116,"x":-87.827,"y":31.685},{"12":0.457,"id":1027,"04":0.415,"08":0.473,"x":-85.862,"y":33.275},{"12":0.682,"id":1029,"04":0.514,"08":0.624,"x":-85.52,"y":33.67
@cool-Blue
cool-Blue / commit-message.txt
Last active August 29, 2015 14:25
d3 zoomable FDG
41f89fa9b807699f7d0eeeb7a47fec1c60a55b80
orientdb.js
getFamilytreeSingle
- This queries the db for the selected net and returns it: works fine
- Then the sub-net is returned to familytree-d3.js
- findDuplicatesAndSetEmpty checks if the subnet nodes are already in the main net and, if they are, deletes them from the sub-net
- then the remaining nodes on the sub-net are concatinated onto the main net.
- if the main net already contains the selected net the end result is nothing
getFamilytreeAll2