Skip to content

Instantly share code, notes, and snippets.

View jessehattabaugh's full-sized avatar
🤠
pew pew

Jesse Hattabaugh jessehattabaugh

🤠
pew pew
View GitHub Profile
{"name":"Welcome!","method":"url","files":[{"location":"./playgrounds/welcome/server.js","filename":"server.js","builtin":true,"contents":"\non.get(\"/\", (request) => {\n return render(request, 'index.html')\n})"},{"location":"./playgrounds/welcome/.playground.json","filename":".playground.json","builtin":true,"contents":"{\n \"name\": \"Welcome!\",\n \"method\": \"url\",\n \"files\": [\n {\n \"location\": \"./playgrounds/welcome/server.js\",\n \"filename\": \"server.js\",\n \"builtin\": true\n },\n {\n \"location\": \"./playgrounds/welcome/.playground.json\",\n \"filename\": \".playground.json\",\n \"builtin\": true\n },\n {\n \"location\": \"./playgrounds/.loader.html\",\n \"filename\": \".loader.html\",\n \"builtin\": true\n },\n {\n \"location\": \"./playgrounds/welcome/index.html\",\n \"filename\": \"index.html\"\n },
### Keybase proof
I hereby claim:
* I am jessehattabaugh on github.
* I am jessehattabaugh (https://keybase.io/jessehattabaugh) on keybase.
* I have a public key ASCkmlNbdh-Lus4R2PSv0iJd6Z76RXveGhz7y_E6PtmLigo
To claim this, I am signing this object:
  • /home

  • /compose/tweet

    • as reply
    • with RT
  • /messages

  • /explore: search home

  • /search: search results

  • /{user} : profile

@jessehattabaugh
jessehattabaugh / index.js
Created November 14, 2015 01:47
requirebin sketch
$ = require('jquery');
var fileReaderStream = require('filereader-stream');
var JSONStream = require('JSONStream');
count = 0;
$('[type=file]').on('change', function () {
var acc = $('#acc').val();
$('output').val('Loading...');
fileReaderStream(this.files[0])
@jessehattabaugh
jessehattabaugh / index.js
Created November 14, 2015 01:12
requirebin sketch
$ = require('jquery');
var fileReaderStream = require('filereader-stream');
var JSONStream = require('JSONStream');
$('[type=file]').on('change', function () {
var file = this.files[0];
var stream = fileReaderStream(file)
.pipe(JSONStream.parse('locations.*'));
stream.on('data', function(data) {
console.log('received:', data);
@jessehattabaugh
jessehattabaugh / index.js
Created October 31, 2015 00:33
requirebin sketch
/**
* Model
*/
var rx = require('rx');
var initialState = {todos: [
'get milk'
]};
var el = document.getElementById('app');
@jessehattabaugh
jessehattabaugh / build.js
Created October 11, 2015 19:36
build.js
const fs = require('fs');
const path = require('path');
const argv = require('minimist')(process.argv.slice(2));
const config = require('./config');
/* Here's what this build script does every time you run it
*****************************************************************************/
clean();
html();
@jessehattabaugh
jessehattabaugh / index.js
Created October 8, 2015 18:10
requirebin sketch
const YOUR_API_KEY = '8994b8108f2a4e4eba0b512942670f2c';
var L = require('leaflet');
var auth = require('arkanciscan-planet-client/api/auth');
auth.setKey(YOUR_API_KEY);
var mosaics = require('arkanciscan-planet-client/api/mosaics');
mosaics.get('color_balance_mosaic').then(function (data) {
@jessehattabaugh
jessehattabaugh / index.js
Last active October 8, 2015 17:41
requirebin sketch
const YOUR_API_KEY = '86373116b0284f75bd4a7c53242b9c92';
var L = require('leaflet');
var auth = require('arkanciscan-planet-client/api/auth');
auth.setKey(YOUR_API_KEY);
/*
var mosaics = require('arkanciscan-planet-client/api/mosaics');
mosaics.get('color_balance_mosaic').then(function (data) {