Skip to content

Instantly share code, notes, and snippets.

View iainkirkpatrick's full-sized avatar
🏀

Iain Kirkpatrick iainkirkpatrick

🏀
View GitHub Profile
@iainkirkpatrick
iainkirkpatrick / index.html
Last active September 14, 2015 11:24
eighty logo be trippin
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>animatEIGHTY</title>
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
d3.selectAll('.graph').each(function (d, i) {
var graphEl = this,
graphNo = i;
var attrs = d3.values(this.attributes).slice(0, this.attributes.length);
//not all attrs are those given by user, some are methods, but length does not include them
var graphAttrs = attrs.map(function(e) {
// console.log(e.nodeName);
return d3.map(e.nodeName, e.nodeaValue)
});
@iainkirkpatrick
iainkirkpatrick / index.html
Last active December 29, 2015 23:58
SVG grid creation using D3
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
float: left;
border: solid 1px #aaa;
}
</style>
@iainkirkpatrick
iainkirkpatrick / README.md
Last active December 18, 2015 11:58
Testing.

Test readme.