Skip to content

Instantly share code, notes, and snippets.

View endash's full-sized avatar

Christopher Swasey endash

View GitHub Profile
@endash
endash / index.html
Created February 6, 2016 21:23 — forked from phil-pedruco/index.html
Plotting a bell (Gaussian) curve in d3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Normal Plot</title>
<meta name="description" content="">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css">
Rapid.itemController = SC.ObjectController.create({
//set your item .set('content', item)
});
------------------------------------------------------------------------------------
progressView: Rapid.ProgressView.design({
layout: {centerX:0, centerY:0, height:150, width:150, border:0},
isVisibleBinding: SC.Binding.from('Rapid.itemController*status').transform(function(value) {
return !!(value & SC.Record.BUSY);
})
})
selectionDidChange: function()
{
if (this.changeTimer)
this.changeTimer.destroy();
this.changeTimer = SC.Timer.schedule({
target: 'this',
action: 'getSelectionData',
interval: 500,
until: Time.now() + 500
@endash
endash / gist:6845
Created August 22, 2008 19:48 — forked from anonymous/gist:6844
require('core');
// objects are created by passing an object literal to the create() method
//
// Ofapisurfer.mainController = SC.Object.create({}) ;
// is the same as
// var obj = {}
// Ofapisurfer.mainController = SC.object.create(obj);
//