Skip to content

Instantly share code, notes, and snippets.

View cesarvarela's full-sized avatar
🟢
this is a green dot

Cesar Varela cesarvarela

🟢
this is a green dot
View GitHub Profile
@cesarvarela
cesarvarela / pre-commit
Last active August 29, 2015 14:05 — forked from mobz/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
#!/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 ""
@cesarvarela
cesarvarela / gist:4145876
Created November 25, 2012 23:34
A VERY basic chrome.storage.local custom sync, method for Backbone.js Models
var createLocalStorageSync = function(storageKey)
{
return function(method, model, options)
{
switch (method)
{
case 'create':