Skip to content

Instantly share code, notes, and snippets.

View jasondscott's full-sized avatar

Jason Scott jasondscott

  • San Francisco, California
View GitHub Profile
lon lat zip
-122.412 37.776 94103
-122.402 37.791 94104
-122.396 37.790 94105
-122.728 37.785 94106
-122.394 37.769 94107
-122.409 37.791 94108
-122.421 37.795 94109
-122.416 37.749 94110
-122.405 37.774 94111
@jasondscott
jasondscott / pre-commit
Last active June 6, 2017 20:05
pre-commit hook
echo "Running debugger check"
FILES=$(git diff --cached --name-only HEAD)
RED='\x1B[0;31m';
DEBUG_COMMANDS='debugger|console\.log|binding\.pry'
# Adding /dev/null so that grep reports file name when only one file is given
ERRORS=$(grep -E --line-number $DEBUG_COMMANDS $FILES /dev/null)
if [ -n "$ERRORS" ]; then