Skip to content

Instantly share code, notes, and snippets.

View chrisfrancis27's full-sized avatar
Verified beard

Chris Francis chrisfrancis27

Verified beard
View GitHub Profile
@chrisfrancis27
chrisfrancis27 / .block
Created June 12, 2017 19:41 — forked from mbostock/.block
Force-Directed Graph
license: gpl-3.0
height: 600
@chrisfrancis27
chrisfrancis27 / .block
Last active February 21, 2017 11:48 — forked from mbostock/.block
Canvas Line
license: gpl-3.0
@chrisfrancis27
chrisfrancis27 / gist:35c6e557b46b5a5d5369
Created February 17, 2016 16:14 — forked from guilherme/gist:9604324
Git pre-commit hook that detects if the developer forget to remove all the javascript console.log before commit.
#!/bin/sh
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
consoleregexp='console.log'
# CHECK
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0
then