Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
pew pew

Jesse Hattabaugh jessehattabaugh

🤠
pew pew
View GitHub Profile
View gist:3c0a79629706b2b11510910a72d57d15
### 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:
View twitmap.md
  • /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
View index.js
$ = 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
View index.js
$ = 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
View index.js
/**
* 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
View 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
View index.js
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
View index.js
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) {
@jessehattabaugh
jessehattabaugh / index.js
Last active October 8, 2015 16:46
leaflet mosaic tiles
View index.js
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) {