This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure we're in a virtualenv. | |
if [ -d "$VIRTUAL_ENV" ] | |
then | |
echo "ERROR: not in a virtual environment." | |
exit -1 | |
fi | |
# Make temp directory. | |
CACHE=$(mktemp -d /tmp/install-pygtk-XXXXXX) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# based on: | |
# https://gist.github.com/mikewallace1979/3973059 | |
# Quick hacky script that computes basic statistics from a single | |
# column of numbers from stdin - inspired by the CouchDB _stats reducer | |
function median(arr, sorted, n, _m) { | |
n = asort(arr, sorted) |