Skip to content

Instantly share code, notes, and snippets.

🤠
pew pew

Jesse Hattabaugh jessehattabaugh

🤠
pew pew
Block or report user

Report or block jessehattabaugh

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 twitmap.md
  • /home

  • /compose/tweet

    • as reply
    • with RT
  • /messages

  • /explore: search home

  • /search: search results

  • /{user} : profile

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])
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);
View index.js
/**
* Model
*/
var rx = require('rx');
var initialState = {todos: [
'get milk'
]};
var el = document.getElementById('app');
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();
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 Oct 8, 2015
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 Oct 8, 2015
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) {
@jessehattabaugh
jessehattabaugh / _fonts.styl
Last active Aug 29, 2015
Stylus Mixin for defining and using webfonts
View _fonts.styl
/* Esplaination
****************************************************************************
This include represents a pattern for handling fonts which I have settled on after a lot of time
struggling to get fonts to render consistently across browsers. The jist of it is this; I don't
use font-weight or font-style. Instead I use a different font-family for each variation of the
font (ie. font-family: "FiraSans-Regular"; font-family: "FiraSans-BoldItalic"). The reason I do
this is that browsers don't always use the appropriate @font-face even when you declare them
with font-weight and font-size. This method allows me to control EXACTLY which font file is used.
*/
You can’t perform that action at this time.