Decorator allows you to alter the behavior of a specific object instance. Behavior can be added, changed, or removed.
- Doesn't require inheritance (a bonus when working with ActiveRecord).
# OLD run_test | |
def run_test | |
if @headless | |
headless = Headless.new | |
headless.start | |
end | |
if @browser == :safari | |
b = Watir::Safari.new |
EAC setup 2008-04-14 | |
Notes: | |
Entries beginning with a * represent prompts answered on the | |
screen. Entries beginning with a ! represent actions taken | |
outside of the software world. | |
Wizard: |
@echo off | |
c: | |
cd "\Users\Public\World of Warcraft\interface\addons" | |
"C:\Program Files\7-zip\bin\7za.exe" x -y "%1" |
I hereby claim:
To claim this, I am signing this object:
Verifying that +ewollesen is my blockchain ID. https://onename.com/ewollesen |
#!/bin/bash | |
# Pass RECORD_ID_IP or RECORD_ID_IP6 on the command line | |
# EMAIL and TOKEN can come from ~/.auth/dnsimple.sh or the command line | |
set -e | |
#set -x | |
[ -r ~/.auth/dnsimple.sh ] && . ~/.auth/dnsimple.sh |
// Copyright (C) 2018 Eric Wollesen <ericw at xmtp dot net> | |
// https://gist.github.com/ewollesen/ac51b20c863184c88c56fe9587c663e6 | |
// $ git clone https://gist.github.com/ewollesen/ac51b20c863184c88c56fe9587c663e6 $GOPATH/src/$(hostname -s)/i3status-mpd | |
// $ go install $(hostname -s)/i3status-mpd | |
package main | |
import ( | |
"bytes" |
set -e | |
[ -d ~/.dotfiles ] && mv ~/.dotfiles{,-pre-git} | |
function config { | |
/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@" | |
} | |
alias config='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree=$HOME' | |
git clone --bare [email protected]:df.git "$HOME/.dotfiles" |