Skip to content

Instantly share code, notes, and snippets.

@twolfson
twolfson / README.md
Created August 25, 2015 21:31
Managing nine-track fixtures at scale

At some point, nine-track fixtures become unwieldy to copy/paste by hand. Sometimes you add new HTTP request to a show page and wind up needing to add a new fixture to 20 tests. That is not fun.

Instead of this, we are trying out to use concat with a set of defaults:

// In our fake-server.js
fakeServer.userShowDefaults = [
  'first-fixture', 'proxy'
];
@twolfson
twolfson / README.md
Last active August 25, 2015 23:36
Unrecorded dotfiles

Sometimes I don't have time to fully commit to my dotfiles. These are one-offs I use:

// ~/.gitignore (OS X)
.DS_Store

// ~/.pg_service.conf
[vagrant]
user=db_username
password=db_password
@twolfson
twolfson / .gitignore
Last active August 29, 2015 13:55
Attempt at Vagrantfile for limetext
.vagrant/
code
node_modules/
.vagrant/
dist/
@twolfson
twolfson / .gitignore
Last active August 29, 2015 13:56
Quick and dirty UI for beautify-with-words
node_modules/

Steps to reproduce merged yet clean state

# Clone the repo
git clone https://gist.github.com/8950891.git gist-sexy-bash-prompt-merge-status
cd gist-sexy-bash-prompt-merge-status/

# On a new branch, make a commit
git checkout -b dev/ahead.a
echo "Goodbye Moon" > a.txt
@twolfson
twolfson / README.md
Last active August 29, 2015 13:57
Example gist for eight-track

To get example working, run the following:

git clone https://gist.github.com/9400511.git gist-eight-track-example
cd gist-eight-track-example
npm install
npm test
@twolfson
twolfson / README.md
Last active August 29, 2015 13:57
Example gist for fixed-server

To get example working, run the following:

git clone https://gist.github.com/9402232.git gist-fixed-server-example
cd gist-fixed-server-example
npm install
npm test
@twolfson
twolfson / README.md
Last active August 29, 2015 13:57
Example gist for eight-track/fixed-server combination

To get example working, run the following:

git clone https://gist.github.com/9402559.git gist-fixed-eight-combo-example
cd gist-fixed-eight-combo-example
npm install
npm test
var log = console.log;
for (var i = 0; i < 100; i++) {
switch(true) {
case i%15==0:log('fizzbuzz'); break
case i%3==0:log('fizz'); break
case i%5==0:log('buzz'); break
default: log(i)
}
}