Skip to content

Instantly share code, notes, and snippets.

View seanredmond's full-sized avatar

Sean Redmond seanredmond

View GitHub Profile
@seanredmond
seanredmond / colorbox-title-hack.js
Created March 7, 2012 16:08 — forked from gacha/colorbox-title-hack.js
Simplified a bit. Just move #cboxTitle into #cboxLoadedContent
$(document).bind('cbox_complete', function () {
if ($('#cboxTitle').height() > 20) {
$('#cboxLoadedContent').append($('#cboxTitle'));
$.fn.colorbox.resize();
}
});
@seanredmond
seanredmond / ruby_fiddle.rb
Created June 14, 2012 20:06 — forked from anonymous/ruby_fiddle.rb
Simple example of using class variable from a mixin
module MX
@testvar = 'abc'
def ModTest
'This is ModTest.'
end
def self.ModVarTest
"This is ModVarTest. #{@testvar}"