Skip to content

Instantly share code, notes, and snippets.

View cpietsch's full-sized avatar
💭
in the void

Christopher Pietsch cpietsch

💭
in the void
View GitHub Profile
var elements = data.map(function(d){
return new nmap_element({
id:d.id,
x:d.x,
y:d.y,
weight:d.weight ? d.weight : 1),
klass:d.class ? d.class : 1)
});
});
We couldn’t find that file to show.
import TUIO.*;
TuioProcessing tuio;
PFont font;
int x,y;
void setup () {
size(800, 600);
tuio = new TuioProcessing(this);
@cpietsch
cpietsch / HTML5 Logo
Created April 20, 2011 10:57
just finish my research on how to make a raw html5 version out of my new logo. must say: html5 is bad ass! to get the “multiply” effect in html5 working (used in photoshop for the 3 layers) i had to render each layer “offscreen” by using a renderToCanvas
@cpietsch
cpietsch / README.md
Last active January 4, 2016 10:41
Voronoi Images

Using voronoi tessellation on random points as a surface for images. From here you could distribute the points in a more meaningfull way e.g. using t-SNE or d3.layout.force()

@cpietsch
cpietsch / README.md
Last active January 4, 2016 10:52
Points on concentrical ring pattern

This example shows the placement of a preset number of points (i) in a concentrical ring pattern. The amount of points from one ring to the next forms an arithmetic progression, whose constant difference („more“) can be varied. By inverting the formula for arithmetic series the necessary number of rings ist calculated for a given amount of points. Afterward the points are arranged equally spaced in the ring pattern. By Manfred & Christopher Pietsch

@cpietsch
cpietsch / README.md
Last active January 4, 2016 10:54
node-webkit screenshot
@cpietsch
cpietsch / spookymultiple.js
Created May 24, 2013 17:58
run spooky.js in a recursive mode multiple times
var Spooky, config, i, run_spooky, scraping, spooky, spooky_is_ready;
Spooky = require('spooky');
config = {
child: {
port: 8081
}
};
@cpietsch
cpietsch / .block
Last active February 27, 2016 12:08 — forked from mbostock/.block
Pseudo-Dorling Cartogram
license: gpl-3.0
@cpietsch
cpietsch / README.md
Last active May 29, 2016 14:38
Local Variables

In response to mbostock's block: Local Variables and the Tweet I implemented a little variation having a .local(name[, value) method you can use on selections.

On set, the value is stored on the given element:

element.local("foo", value);

On get, the value is retrieved from given element, or the nearest ancestor that defines it:

var value = element.local("foo");