Skip to content

Instantly share code, notes, and snippets.

@steveharoz
steveharoz / index.html
Last active August 29, 2015 14:07 — forked from eagereyes/index.html
<!DOCTYPE html>
<html>
<head>
<title>Large Multiples</title>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
rect {
fill: #ddd;
stroke: none;
}
@steveharoz
steveharoz / Readme.md
Last active August 29, 2015 14:18
Swapping Bars - d3 with TypeScript

Just a simple test of visualizing some simple data with d3 using TypeScript

@steveharoz
steveharoz / Acceptance rates
Created May 26, 2015 06:26
Acceptance rates
All of these numbers are from proceedings except chi2012 and infovis2012, which are from paper notification emails.
CHI 2011 - 1540 submitted. 409 accepted (27%)
CHI 2011 papers - 1012. 306 (30%)
CHI 2011 notes - 514. 103 (20%)
CHI 2012 - 1577 submitted. 23% accepted (23%) - from notification email
InfoVis 2011 - 172 submitted. 44 accepted (26%)
InfoVis 2012 - 178 submitted. 44 accepted (25%) - from notification email
Vis 2011 - 194 submitted. 49 accepted (25%)
UIST 2011 - 262 submitted. 67 accepted (25%)
@steveharoz
steveharoz / .gitignore
Last active August 29, 2015 14:22 — forked from mbostock/.block
.DS_Store
node_modules
npm-debug.log
@steveharoz
steveharoz / index.html
Last active August 29, 2015 14:24 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<canvas style="width:100%; height:100%"></canvas>
<script>
/* https://github.com/d3/d3-timer Copyright 2015 Mike Bostock */
"undefined"==typeof requestAnimationFrame&&(requestAnimationFrame="undefined"!=typeof window&&(window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame)||function(e){return setTimeout(e,17)}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.timer={})}(this,function(e){"use strict";function n(){r=m=0,c=1/0,t(u())}function t(e){if(!r){var t=e-Date.now();t>24?c>e&&(m&&clearTimeout(m),m=setTimeout(n,t),c=e):(m&&(m=clearTimeout(m),c=1/0),r=requestAnimationFrame(n))}}function i(e,n,i){i=null==i?Date.now():+i,null!=n&&(i+=+n);var o={callback:e,time:i,flush:!1,next:null};a?a.next=o:f=o,a=o,t(i)}function o(e,n,t){t=null==t?Date.now():+t,null!=n&&(t+=+n),l.callback=e,l.time=t}function u(e){e=nu
@steveharoz
steveharoz / standard error.R
Last active November 26, 2015 10:52
Standard Error for R
# r doesn't have a standard error function
stderr = function(x) sqrt(var(x,na.rm=TRUE)/length(na.omit(x)))
ci = function(x, confidence.interval=0.95) stderr(x) * qnorm(1 - (1-confidence.interval)/2)
@steveharoz
steveharoz / normalize.R
Last active March 24, 2016 04:50
normalize subject data
# install.packages('dplyr')
# install.packages('tidyr')
# install.packages('ggplot2')
library(dplyr)
library(tidyr)
library(ggplot2)
# make some trials
data = expand.grid(
subjectID = seq(1, 1.5, length.out=4),
@steveharoz
steveharoz / README.md
Last active September 22, 2015 23:18
transition example

hello markdown

@steveharoz
steveharoz / index.html
Last active November 30, 2015 01:49
HTML Canvas boilerplate
<!DOCTYPE HTML>
<html>
<body>
<canvas id="myCanvas" width="1000" height="1000"></canvas>
<script>
function drawImage() {
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
var imageWidth = canvas.width = Math.min(canvas.width, window.innerWidth);
var imageHeight = canvas.height = Math.min(canvas.height, window.innerHeight);