# Advanced Git: edPUG, July 2014
rm -rf example-repo
export GIT_COMMITTER_DATE="2014-07-15 19:01:00"
saystd "Advanced git"
Good evening.
clear; fanduel.sh | lolcat
import random | |
import threading | |
import time | |
SPEED = 0.5 | |
class Tamagotchi(object): | |
def __init__(self, name): |
>>> class A(object): | |
... def __init__(self, a): | |
... self.a = a | |
... @classmethod | |
... def f(cls, a): | |
... return cls(a) | |
... | |
>>> class B(A): | |
... def __init__(self, a, b): | |
... super(B, self).__init__(a) |
# Advanced Git: edPUG, July 2014
rm -rf example-repo
export GIT_COMMITTER_DATE="2014-07-15 19:01:00"
saystd "Advanced git"
Good evening.
clear; fanduel.sh | lolcat
def fizzbuzz(): | |
for i in itertools.count(1): | |
if i % 15 == 0: yield 'Fizzbuzz' | |
elif i % 3 == 0: yield 'Fizz' | |
elif i % 5 == 0: yield 'Buzz' | |
else: yield i |
#!/usr/bin/env bash | |
# To add two items to the current .gitignore file: | |
# requirement Django South | |
# | |
# To sort and de-dupe the current .gitignore file: | |
# requirement | |
args=( $@ ) | |
args_len=${#args[@]} | |
requirements_file=${args[args_$len-1]} |
I hereby claim:
To claim this, I am signing this object:
set tabstop=4 shiftwidth=4 softtabstop=4 | |
set expandtab | |
autocmd FileType css setlocal ts=4 sts=4 sw=4 noexpandtab | |
autocmd FileType html setlocal ts=4 sts=4 sw=4 noexpandtab | |
autocmd FileType xml setlocal ts=4 sts=4 sw=4 noexpandtab | |
autocmd FileType htmldjango setlocal ts=4 sts=4 sw=4 noexpandtab | |
autocmd FileType javascript setlocal ts=4 sts=4 sw=4 noexpandtab | |
autocmd FileType mustache setlocal ts=4 sts=4 sw=4 noexpandtab | |
autocmd FileType markdown setlocal ts=4 sts=4 sw=4 expandtab spell spelllang=en_gb |
(def names ["John" "Gordon" "Dom" "Jamie" "Stuart" "Ben"]) | |
(let [shuffled-names (shuffle names)] | |
(println (apply str (interpose " buys for " (cons (last shuffled-names) shuffled-names))))) |