Skip to content

Instantly share code, notes, and snippets.

Avatar

Sineline sineline

View GitHub Profile
@sineline
sineline / README.md
Created Mar 1, 2020 — forked from tmcw/README.md
Jenks Natural Breaks with simple-statistics and d3
View README.md
@sineline
sineline / SimpleBlobDetector.js
Created Mar 1, 2020 — forked from janpaul123/SimpleBlobDetector.js
OpenCV SimpleBlobDetector port to OpenCV.js
View SimpleBlobDetector.js
// Port of https://github.com/opencv/opencv/blob/a50a355/modules/features2d/src/blobdetector.cpp
// But with special `faster` option which has slightly different semantics,
// but is a whole bunch faster.
function diff(v1, v2) {
if (v1.x !== undefined) return { x: v1.x - v2.x, y: v1.y - v2.y };
return v1.map((value, index) => value - v2[index]);
}
function norm(vector) {
View capabilities.json
{
"dataRoles": [{
"displayName": "Category Data",
"name": "Category",
"kind": "Grouping"
},
{
"displayName": "Paths",
"name": "Paths",
View .gitignore
# Created by .ignore support plugin (hsz.mobi)
View data.json
{
"nodes":[
{
"name": "Sustainable Development",
"group": "Motivated by",
"paths": ["Responding to change vs following the plan"]
},
{
"name": "Keep it simple",
"group": "Motivated by",
@sineline
sineline / data.json
Last active Mar 14, 2018
Testing of v4 force graph with grid - Based in // Credit https://github.com/john-guerra/forceInABox among others
View data.json
{
"nodes": [
{"name": "Myriel", "group": 1},
{"name": "Napoleon", "group": 1},
{"name": "Mlle.Baptistine", "group": 1},
{"name": "Mme.Magloire", "group": 1},
{"name": "CountessdeLo", "group": 1},
{"name": "Geborand", "group": 1},
{"name": "Champtercier", "group": 1},
{"name": "Cravatte", "group": 1},