Skip to content

Instantly share code, notes, and snippets.

View kferris10's full-sized avatar

Kevin Ferris kferris10

View GitHub Profile
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
function wait_until_then(timeout, condFun, readyFun) {
function checkFun() {
@kferris10
kferris10 / animint.js
Created August 21, 2015 01:37
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created August 20, 2015 12:37
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created August 17, 2015 03:14
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created August 8, 2015 14:00
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created August 7, 2015 01:58
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created July 30, 2015 16:47
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created July 28, 2015 04:04
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created July 26, 2015 05:38
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }
@kferris10
kferris10 / animint.js
Created July 24, 2015 04:56
Selector Widgets
// Define functions to render linked interactive plots using d3.
// Another script should define e.g.
// <script>
// var plot = new animint("#plot","path/to/plot.json");
// </script>
// Constructor for animint Object.
var animint = function (to_select, json_file) {
var linetypesize2dasharray = function (lt, size) {
var isInt = function(n) { return typeof n === 'number' && parseFloat(n) == parseInt(n, 10) && !isNaN(n); }