Skip to content

Instantly share code, notes, and snippets.

Viz that feels right

Abstract

The abstract is the 300 character elevator pitch for this talk

Data visualization is hard. Let's say a designer hands you a single example, with simple data. How do you build something that will handle the complexity of real-world data? Find the rules and constraints

@courajs
courajs / application.controller.js
Created February 3, 2016 18:41
sendClosureAction
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
hello() {
alert('world');
}
}
});
@courajs
courajs / controller.js
Last active November 4, 2015 20:45
app/computed-property-macros/hash.js
import Ember from 'ember';
import hash from 'app/computed-property-macros/hash';
const {
Component
} = Ember;
export default Component.extend({
order: hash('price', 'count')
});
@courajs
courajs / profileSync
Created November 4, 2015 14:33
Profile a synchronous function
window.profileSync = function profileSync(name, f){
return function(){
console.log("starting "+name)
start_time = new Date()
f.apply(this, arguments)
end_time = new Date()
time = (end_time - start_time) / 1000
console.log("finished "+name+" in "+time+" seconds.")
}
}
@courajs
courajs / helpers-radio-button.js
Created June 3, 2014 18:04
Simpler explicit name radio buttons
import RadioView from '../views/radio';
export default Ember.Handlebars.makeViewHelper(RadioView);
@courajs
courajs / helpers-radio-button.js
Created June 3, 2014 17:01
Cooler magic binding radio buttons
import RadioView from '../views/radio';
export default Ember.Handlebars.makeViewHelper(RadioView);