Skip to content

Instantly share code, notes, and snippets.

View kevn's full-sized avatar

Kevin E. Hunt kevn

View GitHub Profile
@kevn
kevn / gist:1133239
Created August 9, 2011 01:39
TinyMCE iframe creation
// Create iframe
// TODO: ACC add the appropriate description on this.
n = DOM.add(o.iframeContainer, 'iframe', {
id : t.id + "_ifr",
src : u || 'javascript:""', // Workaround for HTTPS warning in IE6/7
frameBorder : '0',
allowTransparency : "true",
title : s.aria_label,
style : {
width : '100%',
@kevn
kevn / gist:1263543
Created October 5, 2011 03:23
Etherpad-lite ruby gem timeouts
~/dev/ruby-etherpad-lite% rspec spec [master]
*****************************************************************
DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
* Rspec is deprecated.
* RSpec is the new top-level module in RSpec-2
***************************************************************
@kevn
kevn / sample_test.rb
Created January 3, 2012 20:26
Sample Test::Unit
require 'test/unit'
class FooTest < Test::Unit::TestCase
def setup
# puts "Do stuff before tests"
@foo = 'messages.csv'
@lines = download_export('a', 'b', 'c')
end
@kevn
kevn / gist:1622513
Created January 16, 2012 19:28
SublimeText 2 Settings
File Settings - User:
{
"caret_style": "blink",
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"draw_indent_guides": true,
"indent_guide_options": ["draw_normal", "draw_active", "draw_stack",
"normal_stippled", "stack_stippled", "active_stippled"],
"draw_white_space": "all",
"font_face": "Menlo",
"font_size": 16,