Skip to content

Instantly share code, notes, and snippets.

View guillaumealgis's full-sized avatar

Guillaume Algis guillaumealgis

View GitHub Profile
@guillaumealgis
guillaumealgis / update.sh
Created October 21, 2012 16:00
Git Update Hook
#!/bin/bash
# --- Command line
refname="$1"
oldrev="$2"
newrev="$3"
branch=${refname#refs/heads/}
# Make a temp directory for writing the .jshintrc file
TMP_DIR=`mktemp -d`
@guillaumealgis
guillaumealgis / gist:3927164
Created October 21, 2012 14:44 — forked from founddrama/gist:1013614
a jshint pre-commit hook for git
#!/bin/sh
# A pre-commit hook for git to lint JavaScript files with jshint
# @see https://github.com/jshint/jshint/
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
@guillaumealgis
guillaumealgis / html5_template.html
Created July 15, 2012 14:37 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>untitled</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<script type="text/javascript" src=""></script>