Skip to content

Instantly share code, notes, and snippets.

@mayblue9
mayblue9 / README.md
Created July 28, 2016 00:59 — forked from nitaku/README.md
Arc Diagram II

A new take on a previous example about arc diagrams, showing character patterns in an Italian tongue-twister.

As in Wattenberg's original definition, only essential matching pairs are shown as arcs, to reduce visual clutter. Clicking on an arc highlights all the pairs having the same subsequence of characters.

Whitespaces are ignored by using a character replacement technique prior to the application of the matching algorithm.

Data is computed offline with a python tool by Oliver Mader, which implements a different version of Wattenberg's original algorithm.

@mayblue9
mayblue9 / README.md
Created July 28, 2016 00:58 — forked from nitaku/README.md
Duck Islands (Pink Floyd)

A suggestive experiment leveraging the duck similarity to create "islands" of similar RDF resources.

The technique make use of a fixed random seed, an offline force directed layout simulation to displace the nodes, a Voronoi tessellation and SVG ClipPath to create the cells.

The example depicts the neighborhood of the Pink Floyd resource within DBpedia. Songs and albums are somewhat mixed in the left side of the map, while people (far right), lables (bottom right) are isolated.

@mayblue9
mayblue9 / index.html
Created July 28, 2016 00:50 — forked from emeeks/index.html
Taffy Edges
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<style>
body { font-family: Hevetica; }
.node {
stroke: #fff;
stroke-width: 1.5px;
}
@mayblue9
mayblue9 / README.md
Created July 28, 2016 00:47 — forked from nitaku/README.md
HCL decomposition: linL quadC 'cubehelix' rainbow
[{"conference":{"hash_tags":["#asyncjs"],"twitter_account":"@asyncjs","api_urls":{"conference":"http://lanyrd.asyncjs.com/2012/asyncjs-onecanvas-2/","speakers":"http://lanyrd.asyncjs.com/2012/asyncjs-onecanvas-2/speakers/","trackers":"http://lanyrd.asyncjs.com/2012/asyncjs-onecanvas-2/trackers/","attendees":"http://lanyrd.asyncjs.com/2012/asyncjs-onecanvas-2/attendees/","staff":"http://lanyrd.asyncjs.com/2012/asyncjs-onecanvas-2/staff/"},"name":"[Async]: One Canvas - part two","end_date":"2012-09-27","url":"http://asyncjs.com/onecanvas-2/","short_url":"http://lanyrd.comchpcp","topics":[{"web_url":"http://lanyrd.com/topics/art/","name":"Art","api_urls":{"topic":"http://lanyrd.asyncjs.com/topics/art/"}},{"web_url":"http://lanyrd.com/topics/hack-day/","name":"Hack Day","api_urls":{"topic":"http://lanyrd.asyncjs.com/topics/hack-day/"}},{"web_url":"http://lanyrd.com/topics/html5/","name":"HTML5","api_urls":{"topic":"http://lanyrd.asyncjs.com/topics/html5/"}},{"web_url":"http://lanyrd.com/topics/javascript/","name"
@mayblue9
mayblue9 / README.md
Created July 27, 2016 04:59 — forked from kleem/README.md
Cassandra social graph matrix

This example shows the interactions of a group of forum users in the form of a matrix. The interaction is computed by taking into account the number of posts the users wrote into threads with common tags (tags are chosen from a list of relevant keywords). To make clusters more evident we sort the users with a hierarchical clustering algorithm.

A linear luminance multihue color scale is used to improve the readability of the color encoding.

@mayblue9
mayblue9 / .block
Created July 27, 2016 04:56 — forked from mbostock/.block
Perspective Transformation
license: gpl-3.0
<!DOCTYPE html>
<meta charset="utf-8">
<head>
</head>
<style>
.q0-11 {fill: rgb(215, 48, 39);}
.q1-11 {fill: rgb(244, 109, 67);}
.q2-11 {fill: rgb(253, 174, 97);}
.q3-11 {fill: rgb(254, 224, 144);}
@mayblue9
mayblue9 / README.md
Created July 27, 2016 04:14 — forked from jstcki/README.md
Sorting the Grid
@mayblue9
mayblue9 / d3.sketchy.js
Created July 27, 2016 04:06 — forked from emeeks/d3.sketchy.js
Sketchy Network
d3.sketchy = {};
d3.sketchy.circle = function(selection) {
var r = 5, c = [0,0], w = 2, fillColor = "red", strokeColor = "black";
function d3_sketchyCircle(selection) {
selection.append("circle").attr("class", "sketchy").attr("r", r).attr("cx", c[0]).attr("cy", c[1]).style("fill", fillColor)
r = r * 1.5;