Skip to content

Instantly share code, notes, and snippets.

@alanmclean
alanmclean / index.html
Last active September 25, 2022 07:45
arc tween example
<html>
<body>
<head>
<style type="text/css">
.bg-circle{
fill: #ddd;
stroke: none;
}
.progress-bar{
fill: #000;
@alanmclean
alanmclean / streamloader.js
Created June 26, 2014 00:15
for strava stream requests, assuming x/y mapping
var strava = strava || {};
// https://www.strava.com/api/v3/activities/131057926/streams/heartrate?access_token=6d8df9236d33c0e00ad517e720f9cd3c6d58e265
strava.streamLoader = function(streams){
_.extend(this, Backbone.Events);
this.streams = streams;
this.x = streams.x;
this.y = streams.y;
this.activity = streams.activity;
this.accessToken = '6d8df9236d33c0e00ad517e720f9cd3c6d58e265';
this.url = 'http://www.strava.com/api/v3/activities/'+this.activity+'/streams/'+this.x+','+this.y+'?access_token='+this.accessToken+'&callback=?';
@alanmclean
alanmclean / index.html
Last active August 29, 2015 14:01
sugar
<html>
<body>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
<style type="text/css">
body{
overflow: hidden;
background: #333;
padding: 0;
margin: 0;
<html>
<body>
<head>
<style type="text/css">
body{
overflow: hidden;
background: #333;
}
.sugar-line{
fill: none;
@alanmclean
alanmclean / gist:10899257
Created April 16, 2014 16:02
post- rake db:migrate
Did not trace #create because that method does not exist
Did not trace #find because that method does not exist
Did not trace #objects because that method does not exist
Did not trace #list because that method does not exist
Did not trace AWS::S3::Bucket#[] because that method does not exist
Did not trace AWS::S3::Bucket#new_object because that method does not exist
Did not trace AWS::S3::Bucket#delete_all because that method does not exist
Did not trace AWS::S3::Bucket#update because that method does not exist
Did not trace #about because that method does not exist
Did not trace #copy because that method does not exist
1) AthleteRunningRacesController update should return 200 on success
Failure/Error: put 'update', running_race_id: running_race.id
ActionController::RoutingError:
No route matches {:running_race_id=>"9", :controller=>"athlete_running_races", :action=>"update"}
# ./spec/controllers/athlete_running_race_controller_spec.rb:69:in `block (3 levels) in <top (required)>'
date Airbus Boeing
2000-07-31 0 0
2000-08-31 -0.884 9.8912
2000-09-29 9.6685 32.1383
2000-10-31 32.5967 38.9245
2000-11-30 33.1492 41.4853
2000-12-29 30.7182 35.2113
2001-01-31 27.0718 19.8464
2001-02-28 24.3094 27.4264
2001-03-30 16.0773 14.1306
<!doctype html>
<html lang="en">
<head>
<title>three.js - Jotunheimen</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body { margin: 0; overflow: hidden; }
</style>
</head>

This parallel coordinates visualization of cars from the ‘70s and ‘80s demonstrates one of D3 2.5.0’s new interactive features: the brush component. By clicking and dragging along any axis, you can specify a filter for that dimension. The brush component is also used in the updated scatterplot matrix example.

@alanmclean
alanmclean / README.md
Last active December 28, 2015 08:58 — forked from mbostock/.block

The fill transition does not work in Chrome when the target of the transition is within an <a> tag with the xlink:href attribute set.