Skip to content

Instantly share code, notes, and snippets.

@jzaefferer
jzaefferer / .bash_profile
Last active September 27, 2015 14:48
git-bash addons
# excerpt, I've got my stuff in my file
source ~/.git-completion.bash
source ~/.git-flow-completion.bash
export PS1='\w $(vcprompt)\$ '
alias s="git status"
alias d="git diff"
module("user", {
"/resolve?url=http://soundcloud.com/forss": "/fixtures/forss.json",
"/users/183/playlists": {
responseStatus: 500,
responseText: "servererror",
responseTime: 1
}
});
var testTimeout;
module = function(name, mocks) {
QUnit.module(name, {
setup: function() {
if (mocks) {
if (mocks.setup) {
mocks.setup.apply(this, arguments);
}
$.each(mocks, function(url, mock) {
if (/setup|teardown/.test(url)) {
module("user", {
"/users/183/tracks": "/fixtures/forss-tracks.json",
"/users/183/playlists": "/fixtures/forss-playlists.json",
"/users/183/favorites": "/fixtures/forss-favorites.json",
"/users/183/groups": "/fixtures/forss-groups.json",
});
embed
table track {
id pk
artist string
title string
}
table rating {
track fk
name string
value int (1-10)
function extend( target ) {
var input = slice.call( arguments, 1 ),
inputIndex = 0,
inputLength = input.length
key,
value;
for ( ; inputIndex < inputLength; inputIndex++ ) {
for ( key in input[inputIndex] ) {
value = input[inputIndex];
if (value !== undefined ) {
// Backbone.history with HTML5 support
(function() {
var loc = window.location,
pushSupport = !!(window.history && window.history.pushState),
hashStrip = /^#*/;
// add HTML5 support to Backbone.history, drop the old IE stuff
_.extend(Backbone.History.prototype, {
getFragment : function(l) {
Zombie: GET http://jquery.bassistance.de/qunit/test/
Zombie: GET http://jquery.bassistance.de/qunit/test/ => 200
Zombie: GET ../qunit/qunit.js
Zombie: GET test.js
Zombie: GET same.js
Zombie: GET ../qunit/qunit.js => 200
Zombie: Running script from /qunit/qunit/qunit.js
Zombie: GET test.js => 200
Zombie: Running script from /qunit/test/test.js
Zombie: GET same.js => 200
Zombie: GET http://jsbin.com/onomi4
Zombie: GET http://jsbin.com/onomi4 => 200
Zombie: Running script from http://jsbin.com/onomi4:undefined:undefined<script>
Zombie: Running script from http://jsbin.com/onomi4:undefined:undefined<script>
Zombie: Running script from http://jsbin.com/onomi4
this is called in the HEAD tag
Zombie: GET http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
Zombie: GET /js/render/edit.js
Zombie: GET http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js => 200
Zombie: Running script from /ajax/libs/jquery/1.4.4/jquery.min.js