Skip to content

Instantly share code, notes, and snippets.

@udayms
udayms / git-log-pretty
Created June 7, 2017 18:25 — forked from miebach/git-log-pretty
pretty git log graph with coloured branches
# Visualizing branch topology in git on the commandline
git log --graph --oneline --full-history --all
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s"
# With colors in Bash:
git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
@udayms
udayms / hammer-directives.js (ported for Hammer v2)
Last active December 14, 2015 03:49 — forked from phindmarsh/directives.js
Ported for Hammer v2 events. The v2 version of Hammer can be found at https://github.com/EightMedia/hammer.js/tree/v2. Demos at http://eightmedia.github.com/hammer.js/v2/
/**
* Inspired by AngularJS' implementation of "click dblclick mousedown..."
*
* This ties in the Hammer v2 events to attributes like:
* The v2 version of Hammer can be found at https://github.com/EightMedia/hammer.js/tree/v2
*
* hm-tap="add_something()"
* hm-swipe="remove_something()"
*
* and also has support for Hammer options with: