Skip to content

Instantly share code, notes, and snippets.

View mikima's full-sized avatar

Michele Mauri mikima

View GitHub Profile
@tomshanley
tomshanley / .block
Last active January 13, 2024 20:28
Sankey with circular link and animated dashes
license: mit
height: 800
@Kcnarf
Kcnarf / .block
Last active October 8, 2019 06:14
Weighted Voronoi Treemap in D3v4
license: gpl-3.0
height: 1000
@ericsoco
ericsoco / .block
Last active November 22, 2018 19:53
cluster force
license: mit
@enjalot
enjalot / README.md
Last active June 17, 2020 08:18
WWSD #11: Mapbox-gl + d3 SVG overlay
@ericandrewlewis
ericandrewlewis / LICENSE
Last active October 19, 2023 14:03
Circles on an Axis in a Static Force Layout
The MIT License (MIT)
Copyright (c) 2016 Eric Andrew Lewis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
@mbostock
mbostock / .block
Last active May 27, 2023 17:42 — forked from mbostock/.block
Cluster Force Layout IV
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/clustered-bubbles-2
@leibovic
leibovic / dominant-color.js
Created June 9, 2011 16:27
Dominant Color
function getDominantColor(aImg) {
let canvas = document.createElement("canvas");
canvas.height = aImg.height;
canvas.width = aImg.width;
let context = canvas.getContext("2d");
context.drawImage(aImg, 0, 0);
// keep track of how many times a color appears in the image
let colorCount = {};