Skip to content

Instantly share code, notes, and snippets.

View wavded's full-sized avatar
🐢
Turtles all the way

Marc Harter wavded

🐢
Turtles all the way
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"_state":{"bingKey":"AqlRkpGMghrGLhdnu26G1wuL7bUZUB3RErr4AmGzJq-0cYhzB37qSOpe0TwhBb1P","isInitialized":true,"tourActive":false,"geocode":{"address":"64701, Harrisonville, Missouri","lng":-94.33979907949315,"lat":38.64584951161476,"zoomLevel":10,"buffer":{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-94.26738463715677,38.64584951161476],[-94.26877606036102,38.63172215474074],[-94.27289685836034,38.618137704268676],[-94.27958867119861,38.60561820301196],[-94.28859433626126,38.594644768382864],[-94.29956777089033,38.585639103320226],[-94.31208727214705,38.57894729048196],[-94.32567172261912,38.574826492482636],[-94.33979907949315,38.57343506927838],[-94.35392643636717,38.574826492482636],[-94.36751088683924,38.57894729048196],[-94.38003038809596,38.585639103320226],[-94.39100382272504,38.594644768382864],[-94.40000948778768,38.60561820301196],[-94.40670130062595,38.618137704268676],[-94.41082209862527,38.63172215474074],[-94.41221352182953,38.64584951161476],[-94.41082209862527,38.659976868488
@wavded
wavded / .zshrc
Created December 23, 2011 20:36
ZSHRC
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="lukerandall"
# Set to this to use case-sensitive completion
# Node build script that runs cloc, cpd, lint, test and coverage for Jenkins
#
# Outside tools include:
# jscpd: npm i jscpd -g
# cloc: npm i cloc -g
# eslint: npm i eslint -g
set -x
export NODE_ENV=production
@wavded
wavded / image format test results
Created January 20, 2014 20:44
Map tile format r&d, based on resolutions
JPEG / No Imagery / Fresh Cache
250000 - 196.5k
150000 - 212.8k
100000 - 1.2m
80000 - 1.2m
50000 - 1m
35000 - 831.1k
32000 - 735.1k
25000 - 772.8k
@wavded
wavded / commands.sh
Last active January 3, 2016 10:19
Misc Commands
# A makeshift SMTP server that logs all messages to the console
python -m smtpd -n -c DebuggingServer localhost:25
# Spotlight search results in terminal
mdfind
@wavded
wavded / test-single.geojson
Last active December 27, 2015 19:19
ogr2ogr.test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// works
var fs = require('fs'),
spawn = require('child_process').spawn,
out = fs.openSync('./out.log', 'a'),
err = fs.openSync('./out.log', 'a');
var child = spawn('prg', [], {
detached: true,
stdio: [ 'ignore', out, err ]
});
@wavded
wavded / setup.sh
Created July 31, 2013 15:56
Ubuntu PhantomJS Setup
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2
tar xvf phantomjs-1.9.1-linux-x86_64.tar.bz2
sudo mv phantomjs-1.9.1-linux-x86_64 /usr/local/lib/phantomjs
sudo ln -s /usr/local/lib/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
@wavded
wavded / series.js
Last active December 20, 2015 05:09
var fs = require('fs')
var Q = require('q')
var fs_stat = Q.denodeify(fs.stat)
var files = ['./fixtures/file1', './fixtures/file2', './fixtures/file3']
function getStatsSeries (files) {
var d = Q.defer()
var results = []
files.reduce(function (last, file) {