I hereby claim:
- I am larsyencken on github.
- I am larsyencken (https://keybase.io/larsyencken) on keybase.
- I have a public key whose fingerprint is 6416 1FA2 9212 A9B2 7986 EDEB AC54 051E 3C7B 7B03
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# tempdir | |
# | |
# Enter a temporary scratch space directory. | |
# | |
d="$(mktemp -d)" | |
( | |
echo "Entering $d" |
Here's my saga. It's heavily based on this earlier gist, but adapted for Mavericks. I'm starting off from pyenv
running anaconda-1.9.1
.
I tried several versions, but only 2.4.8 compiled successfully for me.
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.8/opencv-2.4.8.zip
unzip opencv-2.4.8.zip
cd opencv-2.4.8
#!/bin/bash | |
# | |
# aws_profile | |
# | |
# Manages multiple AWS accounts through symlinks. | |
# | |
if [ ! -d ~/.aws ]; then | |
echo "ERROR: can't find \${HOME}/.aws directory" 1>&2 | |
exit 1 |
Arrow−Struck Tiger | |
Big Halberd | |
Black Whirlwind | |
Boat Flame | |
Comet | |
Demon Carver | |
Demon Face | |
Demon King Who Roils the World | |
Dragon from the Cave | |
Dragon from the Forest |
.ipynb_checkpoints |
#!/bin/bash | |
# | |
# bootstrap.sh | |
# | |
# Bootstrap a new Mac. | |
# | |
set -e | |
declare -a BREWS |
def human_size(s): | |
""" | |
Given a size interval in seconds, return it pretty-printed. | |
>>> human_size(875) | |
'875b' | |
>>> human_size(3037) | |
'3.0Kb' | |
>>> human_size(3691234) | |
'3.7Mb' |
def human_time(s): | |
""" | |
Given a time interval in seconds, return it pretty-printed. | |
>>> human_time(3.234) | |
'3.2s' | |
>>> human_time(91) | |
'1m 31s' | |
>>> human_time(3691) | |
'1h 1m' |