Skip to content

Instantly share code, notes, and snippets.

View stecb's full-sized avatar
🤓
Ciao!

Stefano Ceschi Berrini stecb

🤓
Ciao!
View GitHub Profile
(function(window){
var EVENT_EXISTS = 'GlobalEvents: Event already exists.';
var eventIsRunning,
_eventStack,
_findByName,
stackEvent,
removeEvent,
eventListener,
@stecb
stecb / gist:2852850
Created June 1, 2012 15:12
Hook post-commit to get a snapshot
#!/bin/sh
# Put this in .git/hooks/post-commit (and chmod 755)
CUR_BRANCH=`git rev-parse --abbrev-ref HEAD`
# do this awesomeness if current branch is master
if [ "$CUR_BRANCH" == "master" ]; then
echo "Smile for the camera..."
MSG=`git log -1 --pretty=format:%s`
SNAPSHOT="last_commit.jpg"
@stecb
stecb / LICENSE.txt
Created May 30, 2011 12:50 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE