Skip to content

Instantly share code, notes, and snippets.

Avatar

Todd Wolfson twolfson

View GitHub Profile
@twolfson
twolfson / README.md
Created Aug 25, 2015
Managing nine-track fixtures at scale
View README.md

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 Aug 25, 2015
Unrecorded dotfiles
View README.md

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 Aug 29, 2015
Attempt at Vagrantfile for limetext
View .gitignore
.vagrant/
code
View .gitignore
node_modules/
.vagrant/
dist/
@twolfson
twolfson / .gitignore
Last active Aug 29, 2015
Quick and dirty UI for beautify-with-words
View .gitignore
node_modules/
View README.md

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 Aug 29, 2015
Example gist for fixed-server
View README.md

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 Aug 29, 2015
Example gist for eight-track
View README.md

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 Aug 29, 2015
Example gist for eight-track/fixed-server combination
View README.md

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
@twolfson
twolfson / index.html
Last active Aug 29, 2015
Proof of concept for media keys in node-webkit
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Media key press test</title>
</head>
<body>
<h1>Key pressed</h1>
<p id="output">null</p>
<script>
(function () {
You can’t perform that action at this time.