Skip to content

Instantly share code, notes, and snippets.

View tomjamescn's full-sized avatar

tomjamescn tomjamescn

View GitHub Profile
@tomjamescn
tomjamescn / compile_tmux.sh
Created December 2, 2017 01:20 — forked from tessus/compile_tmux.sh
compile tmux (static)
#!/bin/bash
TMUX_VERSION=2.3
NCURSES_VERSION=6.0
LIBEVENT_VERSION=2.0.22
BASEDIR=${HOME}/work/tmux-static
TMUXTARGET=${BASEDIR}/local
mkdir -p $TMUXTARGET
cd $BASEDIR
@tomjamescn
tomjamescn / .block
Created June 6, 2017 23:50 — forked from mbostock/.block
Brush & Zoom
license: gpl-3.0
@tomjamescn
tomjamescn / bulebird_Promise.each.js
Last active May 24, 2017 14:27 — forked from stephantabor/bb.js
Bluebird .each vs .mapSeries vs .map
var Promise = require('bluebird');
var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n)));
funcs
.each(iterator) // logs: 500, 100, 400, 200
.then(console.log) // logs: [ [Function], [Function], [Function], [Function] ]
funcs
.mapSeries(iterator) // logs: 500, 100, 400, 200
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.