View osx-for-hackers.sh
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
echo "" | |
echo "Increasing the window resize speed for Cocoa applications" | |
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 | |
echo "" |
View pre-commit
#!/bin/sh | |
# don't commit jasmine specs containing a ddescribe or iit | |
if git diff --cached --name-only | xargs egrep --include "*.spec.js" "\b(iit|ddescribe)\b" | |
then | |
echo "Found spec with iit or ddescribe" | |
exit 1 | |
fi |
View gist:4145876
var createLocalStorageSync = function(storageKey) | |
{ | |
return function(method, model, options) | |
{ | |
switch (method) | |
{ | |
case 'create': |