Skip to content

Instantly share code, notes, and snippets.

View melhotiby's full-sized avatar

Matt Elhotiby melhotiby

View GitHub Profile
@melhotiby
melhotiby / gist:75cafb7693dca07e5f13
Created April 5, 2015 23:44
git log dynamically log my commits
git log --date-order --date=iso --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --author="`git config user.name`"
@melhotiby
melhotiby / gist:8655ff27542bf7bf04f6
Created February 28, 2015 02:10
Personal Git Log
git log --date-order --date=iso --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --author="att"
git log --date-order --date=iso --graph --full-history --all --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s' --author="att"
@melhotiby
melhotiby / gist:c66c41b6d9f4a1d2e65f
Last active August 29, 2015 14:14
Dynamically reloading a select tag in rails
jQuery ($) ->
$('html').on 'change', '[data-reload]', (e) ->
e.preventDefault()
window.location = "#{$(this).data('url')}&#{$(this).data('params')}=#{$(this).val()}"