Skip to content

Instantly share code, notes, and snippets.

@shacheeswadia
shacheeswadia / index.html
Created Oct 24, 2018 — forked from MoritzStefaner/.block
Force-based label placement
View index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta charset="utf-8">
<title>Force based label placement</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.6.0"></script>
</head>
<body>
@shacheeswadia
shacheeswadia / flare-imports.json
Last active Feb 23, 2017 — forked from geow812/bundle.html
Hierarchical edge bundling with dynamically generated arcs for each group
View flare-imports.json
[
{
"name":"root.Jobs.Freelance",
"imports":
[
"root.Freelance.Montrose_High_School",
"root.Freelance.Technology_in_Education",
"root.Freelance.Fandango",
"root.Freelance.ICPA",
"root.Freelance.Showtime",
@shacheeswadia
shacheeswadia / config.json
Created Oct 4, 2016 — forked from anonymous/config.json
Bootstrap Customizer Config
View config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@shacheeswadia
shacheeswadia / README.md
Last active Sep 16, 2016 — forked from christophermanning/README.md
Voronoi Diagram with Force Directed Nodes and Delaunay Links
View README.md

Created by Christopher Manning

Summary

Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.

The white lines are the Delaunay triangulation and the purple cells are the Voronoi diagram.

Controls