Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Cesar Varela cesarvarela

🎯
Focusing
View GitHub Profile
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
@cesarvarela
cesarvarela / gist:4145876
Created Nov 25, 2012
A VERY basic chrome.storage.local custom sync, method for Backbone.js Models
View gist:4145876
var createLocalStorageSync = function(storageKey)
{
return function(method, model, options)
{
switch (method)
{
case 'create':