Skip to content

Instantly share code, notes, and snippets.

@laurisvan
laurisvan / simulate_3g.sh
Last active December 24, 2015 10:19
Simple 3G emulation on OS/X. Remember to reset the IP Firewall after doing this by 'sudo ipfw flush''.
#!/bin/sh
#
# simulate_3g.sh - Simulate a sluggish 3G network with delays & packet loss
# Usage: simulate_3g.sh 8080 8081
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
@Raynos
Raynos / 0usage.js
Created December 7, 2011 02:07
The heart of pd
var Parent = {
constructor: function constructor(magic) {
this.isMagic = magic
return this
},
method: function method() { }
}
var Mixin = {
mixinMethod: function () { }