This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'spork' | |
ENV["RAILS_ENV"] ||= 'test' | |
Spork.prefork do | |
# Loading more in this block will cause your tests to run faster. However, | |
# if you change any configuration or code from libraries loaded here, you'll | |
# need to restart spork for it take effect. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
b = branch | |
[branch] | |
autosetupmerge = true | |
[user] | |
email = shhh@shhcom | |
name = Tim Harper | |
[gui] | |
matchtrackingbranch = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Specifications: | |
# | |
# * Spork integration frameworks should not load any dependencies until #run is invoked | |
# * Name is derived from class name. Cucumber becomes cucumber. | |
class Spork::TestFramework::Cucumber < Spork::TestFramework | |
DEFAULT_PORT = 8990 | |
HELPER_FILE = "features/support/env.rb" | |
ALIASES = %w[cuc cuke] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm lib_kernel.so lib_kernel.o | |
gcc -O2 -fno-common -c -o lib_kernel.o lib_kernel.c | |
gcc -bundle -undefined dynamic_lookup -o lib_kernel.so lib_kernel.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
b = branch | |
[branch] | |
autosetupmerge = true | |
[gui] | |
matchtrackingbranch = true | |
pruneduringfetch = true | |
fontui = -family Tahoma -size 13 -weight normal -slant roman -underline 0 -overstrike 0 | |
recentrepo = /Users/timcharper/www/market |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mergetool "diffmerge"] | |
cmd = diffmerge --merge --result="$MERGED" "$LOCAL" "$BASE" "$REMOTE" | |
trustExitCode = false | |
[merge] | |
tool = diffmerge | |
[mergetool] | |
keepBackup = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ruby-debug' | |
require 'socket' | |
require 'forwardable' | |
class SporkDebugger | |
DEFAULT_PORT = 10_123 | |
HOST = '127.0.0.1' | |
extend Forwardable | |
def_delegators :state, *[:prepare_debugger, :initialize] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rm -rf .git | |
$ git init | |
Initialized empty Git repository in /Users/timcharper/project/.git/ | |
$ date > file.txt | |
$ git add file.txt | |
$ git commit -m "initial commit" | |
[master (root-commit) 399a71c] initial commit | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
create mode 100644 file.txt | |
master$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; vines | |
(defun find-non-escaped-paren (kind direction) | |
(cond ((= direction -1) (re-search-backward kind)) | |
((= direction 1) (search-forward kind) (backward-char)) | |
) | |
(cond ((looking-back "\\\\" 1) (find-non-escaped-open-paren kind direction))) | |
) | |
(defun select-previous-paren () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <commit> <branch>" | |
echo " branch is optimal and defaults to current" | |
exit 1 | |
fi | |
what_ref=$1 | |
branch=$(git symbolic-ref HEAD | sed 's|refs/heads/||') | |
git reflog show $branch@{now} | while read ref rest; do | |
if [ -z "$(git rev-list -1 $ref..$what_ref)" ]; then |