Skip to content

Instantly share code, notes, and snippets.

Nick Brombal nbrombal

Block or report user

Report or block nbrombal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nbrombal / .gitconfig
Created Apr 5, 2019
Nick's git Aliases
View .gitconfig
st = status
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
# I use tug and weld to simplify my branch management. I often want to
# keep a branch distinct even when it could be fast-forwarded, so weld
# saves me a second there. I use tug to update a branch without
# automatically initiating a merge when I don't mean to.
tug = pull --ff-only
nbrombal / countdown.js
Last active Aug 29, 2015
Javascript countdown timer with page redirect
View countdown.js
$(function() {
// If target date is specific to one timezone, set to true and specify it
var absoluteTarget = true;
var targetTimeZone = -5;
var targetDateUTC = new Date(Date.UTC(2015,05,22)).getTime();
var currentDate = new Date();
var timeZoneOffset = (absoluteTarget ? targetTimeZone * -60 : currentDate.getTimezoneOffset()) * 60 * 1000;
var targetDate = targetDateUTC + timeZoneOffset;
You can’t perform that action at this time.