View list-unsubscribe.js
function listUnsubscribe() {
var label = GmailApp.getUserLabelByName("Unsubscribe");
var threads = label.getThreads();
threads.forEach(function(thread) {
var message = thread.getMessages()[0];
var value = message.getRawContent().match(/^List-Unsubscribe: ((.|\r\n\s)+)\r\n/m)[1];
if (value) {
var match = value.match(/<(https?:\/\/[^>]+)>/);
View homebred-port-forward.sh
#!/bin/bash
# Appends nginx porting forwarding rules to the system's PF ruleset.
set -e
if [ "$1" == "--debug" ]; then
set -x
shift
fi
View extract-node-modules.sh
#!/bin/bash
# usage: script/extract-node-modules
# Extracts tar'd npm packages from vendor/npm/*.tar into node_modules/ and
# builds any native extensions. This script is automatically invoked from
# script/bootstrap and npm-bundle. You shouldn't need to run it directly.
set -e
compute_md5() {
local output
View observable-from-stream.js
// ES7 Observables + WHATWG Streams
//
// https://github.com/jhusain/asyncgenerator
// https://github.com/whatwg/streams
//
// Continuation from file:
// https://github.com/jhusain/asyncgenerator/blob/master/src/observable.js
Observable.fromStream = function(readable) {
return new Observable(function(generator) {
View gist:11218565

"I think we're in this world I'd like to call Guard Rail Programming... 'I can make change because I have tests!' Who does that? Who drives their car around, banging against the guard rails? Do the guard rails help you get to where you want to go?" - Rich Hickey

http://www.infoq.com/presentations/Simple-Made-Easy

View keybase.md

Keybase proof

I hereby claim:

  • I am josh on github.
  • I am joshpeek (https://keybase.io/joshpeek) on keybase.
  • I have a public key whose fingerprint is E14C 2D9D 2154 FF22 F2DB 5B41 2852 ABCC 729F 67DA

To claim this, I am signing this object:

View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- http://www.backalleycoder.com/2012/04/25/i-want-a-damnodeinserted/ -->
<script>
var styles = document.createElement('style');
styles.type = 'text/css';
document.head.appendChild(styles);
View ready.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="./ready.js"></script>
<script>
document.ready.then(function() {
console.log('READY!');
});
</script>