Skip to content

Instantly share code, notes, and snippets.

@joshmarshall
joshmarshall / euler18.py
Created September 8, 2011 03:44 — forked from ramhiser/gist:1202533
Maximum Binary Tree Sum - Project Euler #18
from numpy import array
raw_data = """75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
@joshmarshall
joshmarshall / puppet-install.sh
Created March 26, 2012 17:00 — forked from oesmith/puppet-install.sh
Install Puppet 2.6.2 from squeeze-backports on Ubuntu 10.04 LTS
cat > /etc/apt/preferences.d/backports <<EOF
Package: puppet puppet-common puppetmaster facter
Pin: release a=lenny-backports
Pin-Priority: 900
EOF
cat > /etc/apt/sources.list.d/backports.list <<EOF
deb http://backports.debian.org/squeeze-backports squeeze-backports main contrib non-free
EOF