Skip to content

Instantly share code, notes, and snippets.

View bkono's full-sized avatar

Bryan Konowitz bkono

View GitHub Profile
// jQuery to scroll to a target element
var x = $(ELEMENT).offset().top - 100;
$('html,body').animate({scrollTop: x}, 500);
#!/usr/bin/ruby
if ENV['GIT_DIR'] == '.'
Dir.chdir('..')
ENV['GIT_DIR'] = '.git'
end
old_head, new_head, ref = STDIN.gets.split
puts ref
`echo \"#{ ref }\" >> head.txt`
if ref == "refs/heads/prod"