Skip to content

Instantly share code, notes, and snippets.

Jayson Harshbarger Hypercubed

Block or report user

Report or block Hypercubed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flights-20k.tsv
We can't make this file beautiful and searchable because it's too large.
date delay distance origin destination
2001-01-01T19:55:00.000Z 23 588 OAK SLC
2001-02-09T20:20:00.000Z 14 407 LAS OAK
2001-01-16T03:26:00.000Z 3 281 BWI BUF
2001-03-13T00:10:00.000Z 3 361 OAK ONT
2001-03-02T16:15:00.000Z -3 324 DAL AMA
2001-02-08T04:15:00.000Z -8 447 SFO SAN
2001-01-12T03:47:00.000Z 7 256 PHX LAS
2001-02-08T20:30:00.000Z 4 347 ELP PHX
2001-01-15T00:45:00.000Z 5 487 STL CLE
@Hypercubed
Hypercubed / index.js
Last active Sep 21, 2016
requirebin sketch
View index.js
const dp = require('chi-datapackage');
const store = {
state: {},
onStateChange: (state, prev) => {
console.log('onStateChange', prev, '-->', state);
},
onError: (err, state) => {
console.log('onError', err);
},
@Hypercubed
Hypercubed / index.js
Last active Sep 21, 2016
requirebin sketch
View index.js
const dp = require('chi-datapackage');
const {action, extendObservable, autorun, whyRun, observe} = require('mobx');
const store = {
loadPackage: action(function loadPackage(data) {
dp.load(data)
.then(p => {
store.package = p;
});
})
@Hypercubed
Hypercubed / index.js
Last active Sep 13, 2016
requirebin sketch
View index.js
const dp = require('chi-datapackage');
const barracks = require('barracks');
const store = barracks()
store.use({
onError: (err, state, createSend) => {
console.error(`error: ${err}`);
},
onAction: (data, state, name, caller, createSend) => {
@Hypercubed
Hypercubed / index.js
Created Sep 13, 2016
requirebin sketch
View index.js
const dp = require('chi-datapackage');
const barracks = require('barracks');
const store = barracks()
store.use({
onError: (err, state, createSend) => {
console.error(`error: ${err}`);
},
onAction: (data, state, name, caller, createSend) => {
@Hypercubed
Hypercubed / index.js
Last active Aug 8, 2016
requirebin sketch
View index.js
const barracks = require('barracks');
const dp = require('chi-datapackage');
const dpStore = barracks();
dpStore.use({
onError: (err, state, createSend) => {
console.error('Error:', err)
},
onAction: (data, state, name, caller, createSend) => {
@Hypercubed
Hypercubed / index.js
Created Jun 24, 2016
requirebin sketch
View index.js
var universe = require('universe');
var data = [{
date: "2011-11-14T16:17:54Z",
quantity: 2,
total: 190,
tip: 100,
type: "tab",
productIDs: ["001"]
@Hypercubed
Hypercubed / index.js
Created Jun 24, 2016
requirebin sketch
View index.js
var universe = require('universe');
var data = [{
date: "2011-11-14T16:17:54Z",
quantity: 2,
total: 190,
tip: 100,
type: "tab",
productIDs: ["001"]
You can’t perform that action at this time.