Skip to content

Instantly share code, notes, and snippets.

View gka's full-sized avatar
🐢

Gregor Aisch gka

🐢
View GitHub Profile
@gka
gka / .gitignore
Created February 20, 2024 17:41 — forked from nolanlawson/.gitignore
rollup-plugin-svelte v5 emitCss issue
node_modules
@gka
gka / .block
Last active June 30, 2016 00:37 — forked from mbostock/.block
Natural Earth
license: gpl-3.0

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

@gka
gka / README.md
Last active December 26, 2015 04:29 — forked from mbostock/.block

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

@gka
gka / README.md
Last active December 25, 2015 14:29 — forked from mbostock/.block

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

@gka
gka / bundle.html
Last active December 14, 2015 20:40 — forked from mbostock/.block
d3 inter-dependency graph
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
<style type="text/css">
path.arc {
cursor: move;
@gka
gka / README.md
Last active December 14, 2015 20:38 — forked from mbostock/.block

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

@gka
gka / README.md
Created February 8, 2013 07:46 — forked from mbostock/.block

Source: Bureau of Labor Statistics

This visualization shows the distribution of unemployment for 380 U.S. metropolitan areas from January 2000 to December 2012. I’m currently weighting each area equally, but it would probably be better to weight areas by the size of the civilian labor force. Thanks to Kevin Quealy for suggesting this dataset, which was the basis for his earlier graphic!

{
"proj": {
"id": "robinson"
},
"layers": {
"countries": {
"src": "ne_10m_admin_0_countries.shp"
},
"graticule": {
"special": "graticule",
@gka
gka / README.md
Created September 19, 2012 13:05
Comparing Map Projections