Skip to content

Instantly share code, notes, and snippets.

/* Dark Mode */
.diff.line .line.wrapper, .diff.line .empty.line.wrapper .hljs {
background-color: #f2f2f2;
}
/* Line Numbers */
div[data-line-number]:not([data-line-number="0"]):before {
content:attr(data-line-number);
position:absolute;
color: #444;
tmacdonald@queequeg ~ $ diff .vimrc Dropbox/dotfiles/.vimrc
5a6,15
> " Install with:
> " mkdir -p ~/.vim/bundle && git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle && vim -c ':BundleInstall' -c ':qa!''
> " Update with:
> " vim -c ':BundleInstall!' -c ':BundleClean' -c ':qa!'
> "
> " You may also wish to install some extra tools to make it work better:
> " * Exuberant ctags - Used for Tagbar to show you where you are in the file. (mac: brew install ctags)
> " * flake8 - Used by Syntastical to check Python. (all: easy_install flake8)
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ oldstable main contrib non-free
deb-src http://deb.debian.org/debian/ oldstable main contrib non-free
deb http://deb.debian.org/debian/ oldstable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ oldstable-updates main contrib non-free
abcm2ps
ack
autoconf
boost
ccat
cgal
cowsay
cscope
fontconfig
freetype

Keybase proof

I hereby claim:

  • I am tsmacdonald on github.
  • I am tsmacdonald (https://keybase.io/tsmacdonald) on keybase.
  • I have a public key ASCwOL7SR6dfm_gT-1_RYPwXV8spIZUjhDDvvrMjF42xVQo

To claim this, I am signing this object:

import ast
import operator as op
import re
import sys
operators = {'+' : op.add,
'-' : op.sub,
'*' : op.mul,
'/' : op.div}
X: 1
T: The Emperor of Germany's Favourite Air
T: With Nine New Variations for the Piano Forte
T: Composed by Robert Mackintosh
M: 3/8
L: 1/8
K: Fmaj
V: 1
A2 G | !turn!FBA | G/>A/B/G/A/F/ | (A/G/)(F/E/)(D/C/) | A2 G | !turn!FBA | G/B/A/d/c/E/ | [A,CF]3 :|: +p+ !turn!f/>e/f/g/a/f/ | +f+ (a/g/)(f/e/)(d/c/) | +p+ !turn!d/>^c/d/e/f/d/ | +f+ (f/e/)(d/c/)(B/A/) | +p+ !turn!B/>A/B/c/d/B/ | +f+ (d/c/)(B/A/)(G/F/) | G/>A/B/G/A/F/ | (A/G/)(F/E/)(D/C/) | +p+ A2 G | !turn!FBA | G/>A/B/G/A/F/ | (A/G/)(F/E/)(D/C/) | +f+ A2 G | !turn!FBA | G/B/A/d/c/E/ | [A,CF]3 :|
%
[{"category":"Leisure Offer / Activities","division":"dealbook","service":"Zoo / Animal Park","options":[{"price_max":20.0,"price_min":10.0,"discount_max":0.6,"discount_min":0.5,"components":[],"option_titles":[{"title":"Admission for Two People"}]},{"price_max":40.0,"price_min":20.0,"discount_max":0.6,"discount_min":0.5,"components":[],"option_titles":[{"title":"Admission for Four People"}]},{"price_max":60.0,"price_min":30.0,"discount_max":0.6,"discount_min":0.5,"components":[],"option_titles":[{"title":"Admission for Six People"}]},{"price_max":80.0,"price_min":40.0,"discount_max":0.6,"discount_min":0.5,"components":[],"option_titles":[{"title":"Admission for Eight People"}]},{"price_max":20.0,"price_min":10.0,"discount_max":0.8,"discount_min":0.5,"components":[],"option_titles":[{"title":"Two Full-Day Admissions"}]},{"price_max":40.0,"price_min":20.0,"discount_max":0.8,"discount_min":0.5,"components":[],"option_titles":[{"title":"Four Full-Day Admissions"}]},{"price_max":60.0,"price_min":30.0,"discount_ma
(defun fib (n &optional (a 0) (b 1))
(if (zerop n)
a
(fib (1- n) b (+ a b))))
(defun fib (n &optional (i 1) (a 0) (b 1))
(if (= i n)
b
(fib n (1+ i) b (+ a b))))
;;Results on an 8-year old laptop:
CL-USER> (time (fib 100000))
Evaluation took: