Skip to content

Instantly share code, notes, and snippets.

@dwtkns
dwtkns / snippet.js
Created November 20, 2013 18:47
Snippet to paste into console to load d3 onto a page
var s=document.createElement('script'); s.type='text/javascript'; s.src='http://d3js.org/d3.v3.min.js'; document.head.appendChild(s);
@dwtkns
dwtkns / index.html
Created November 16, 2013 18:51
Umm
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path { fill:none; stroke:white; }
.bg { fill: #446;}
.inner { stroke-width: 500px; stroke: #ffc; opacity: .2;}
.dark { stroke: #114; opacity:.2;}
</style>
@dwtkns
dwtkns / README.md
Last active December 28, 2015 12:49
Snap.svg Animation Tests #1
@dwtkns
dwtkns / README.md
Created November 10, 2013 23:47
Patterns & animation test 2
@dwtkns
dwtkns / README.md
Created November 5, 2013 14:10
SVG patterns & animation test

Experimenting with transitions on pattern fills.

var httpAgent = require('http-agent'),
util = require('util');
var agent = httpAgent.create('www.google.com', ['finance', 'news', 'images']);
agent.addListener('next', function (err, agent) {
console.log('Body of the current page: ' + agent.body);
console.log('Response we saw for this page: ' + util.inspect(agent.response));
// Go to the next page in the sequence
@dwtkns
dwtkns / README.md
Last active March 28, 2023 23:31
Faux-3D Arcs

Building on this - experimenting with fake 3d svg arcs using two nested orthographic projections and cardinal line interpolation.