Skip to content

Instantly share code, notes, and snippets.

View bryanmtl's full-sized avatar

Bryan Mahoney bryanmtl

View GitHub Profile
@bryanmtl
bryanmtl / gist:2884362
Created June 6, 2012 20:00
One liner to grab the latest production DB from Heroku
curl $(heroku pgbackups:url --remote production) | pg_restore --verbose --clean --no-acl --no-owner -h localhost -U root -d screening_room_development
var shiftHeld = false;
var initialLoad = true;
$(document).ready(function(){
init_interface();
init_sortable_menu();
init_submit_continue();
init_modal_dialogs();
init_tooltips();
init_ajaxy_pagination();
});
$(document).ready(function(){
$('#custom_images_tab a').click(function(){
if (!(picker = $('#page_image_picker')).data('size-applied')){
wym_box = $('.page_part:first .wym_box');
iframe = $('.page_part:first iframe');
picker.css({
height: wym_box.height()
, width: wym_box.width()
}).data('size-applied', true).corner('tr 5px').corner('bottom 5px').find('.wym_box').css({
backgroundColor: 'white'
@bryanmtl
bryanmtl / gist:2036619
Created March 14, 2012 13:52
H+C Redo

H&C

Phase I

Components

Brand Update

Non-negotiables

@bryanmtl
bryanmtl / gist:1780765
Created February 9, 2012 15:51 — forked from nicholasjhenry/gist:1780623
Installing ruby-debug with ruby-1.9.3-p0-falcon
# Install with:
# bash < <(curl -L https://raw.github.com/gist/1780623)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-p0 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem