Skip to content

Instantly share code, notes, and snippets.

View jzimdars's full-sized avatar

Jason Zimdars jzimdars

View GitHub Profile
@jzimdars
jzimdars / Date formatting
Created March 22, 2011 14:01
Fix for %e in strftime
def format_entry_date(date, format)
case format
when "human"
date.strftime("%b %d, %Y").gsub(/ 0(\d\D)/, ' \1')
when "machine"
date.strftime("%Y-%m-%d")
end
end
@jzimdars
jzimdars / gist:1107436
Created July 26, 2011 18:23
Avoid push error messages in Git
git config push.default current
@jzimdars
jzimdars / gist:1126023
Created August 4, 2011 19:31
Set tab title and bash prompt
function set_window_and_tab_title
{
local title="$1"
if [[ -z "$title" ]]; then
title="root"
fi
local tmpdir=~/Library/Caches/${FUNCNAME}_temp
local cmdfile="$tmpdir/$title"
div.pages {
margin: 0 auto;
width: 960px;
position: relative;
}
div.page {
height: auto;
position: relative;
margin: 0;
@jzimdars
jzimdars / new_project_dialog.coffee
Created May 6, 2013 18:43
CSS transitions via jQuery
resizeDialogToSheet = (callback) ->
setTimeout ->
$("#new_project_dialog > article.new").transition
width: 900,
height: 900,
margin: "90px auto"
,
duration: 600,
timing: "ease-in-out",
complete: callback
JZMBP13: ~/37s/apps/bc3 (master) $ cap production deploy:pending
* 2017-04-18 13:38:40 executing `production'
** Deployment target: production_sc_chi
** Deployment target: production_rw_ash
triggering after callbacks for `production'
* 2017-04-18 13:38:40 executing `load_deployment_roles'
triggering start callbacks for `deploy:pending'
* 2017-04-18 13:38:40 executing `multistage:ensure'
* 2017-04-18 13:38:40 executing `deploy:pending'
* executing "cat /u/apps/bc3/current/REVISION"