Skip to content

Instantly share code, notes, and snippets.

View wesleytodd's full-sized avatar

Wes Todd wesleytodd

View GitHub Profile
@retrohacker
retrohacker / compress.sh
Last active August 21, 2019 00:54
Using patch files for storing the npm registry
#!/bin/bash
# Remove anything that may have been left over by a previous run
rm -rf patch orig new
mkdir patch
for TARBALL in `ls - | node semver-sort.js`
do
tar -xzf "./-/${TARBALL}"
@peterjmag
peterjmag / react-native-talk.md
Last active June 21, 2021 10:13
Let's build a React Native app in 20 minutes - React Berlin #1 (April 2015)
@WebReflection
WebReflection / process.nextTick.js
Created June 19, 2012 10:57
process.nextTick(callback) for browsers too
!function (window) {"use strict";
// by WebReflection - WTFPL License
var
prefixes = "r webkitR mozR msR oR".split(" "),
process = "process",
nextTick = "nextTick",
i = 0,
p = window[process] || (window[process] = {})
;
while (!p[nextTick] && i < prefixes.length)