Skip to content

Instantly share code, notes, and snippets.

@jstcki
jstcki / README.md
Last active August 29, 2015 13:56
Transitions with D3

Avoid restarting running transitions by either starting one just on the .enter() selection or by using selection.filter() to only select elements which are not in transit yet.

Alternative implementations combining D3 with React and React TransitionGroup.

@jstcki
jstcki / .gitignore
Last active August 29, 2015 13:58
WFS to TopoJSON
.DS_Store
build
node_modules
@jstcki
jstcki / index.js
Created November 10, 2014 10:02
requirebin sketch
var Intl = require('intl');
console.log(new Intl.NumberFormat('de-ch', {style:'currency', currency:'chf'}).format(123456.789));
@jstcki
jstcki / README.md
Created November 20, 2014 17:44
React-D3 Components

React-D3 components.

@jstcki
jstcki / README.md
Last active August 29, 2015 14:13
Animating Circles (D3 & SVG)

Animation with D3 and SVG. Runs with 18 – 20 FPS on a Retina MBP 13".

Also with Canvas and React.

@jstcki
jstcki / README.md
Last active August 29, 2015 14:13
Animating Circles (React & SVG)

Animation with React and SVG. Runs with 8 – 9 FPS on a Retina MBP 13".

Also with D3 and Canvas.

@jstcki
jstcki / gist:294640
Created February 4, 2010 13:56
Redirect HTTP to HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
@jstcki
jstcki / nest.rb
Created October 29, 2012 16:35
D3.js's nest operator in Ruby
# D3.js's nest operator in Ruby
class Nest
def initialize
# var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
@nest = {}
@keys = []
@sort_keys = []
end
@jstcki
jstcki / README.md
Last active November 11, 2015 08:28
Animating Circles (Canvas)

Animation with Canvas. Runs with 23 – 24 FPS on a Retina MBP 13".

Also with D3 and React.

@jstcki
jstcki / README.md
Last active November 11, 2015 08:50
Playin with p5.js