Skip to content

Instantly share code, notes, and snippets.

View monde's full-sized avatar
🐲

Mike Mondragon monde

🐲
  • Okta
View GitHub Profile
@monde
monde / IRB.conf-default.txt
Last active December 10, 2015 12:58 — forked from anonymous/README.md
notes for IRB lightening talk at Seattle.rb
% irb
irb(main):001:0> IRB.conf
=> CONF[:AP_NAME]="irb"
CONF[:AT_EXIT]=[]
CONF[:AUTO_INDENT]=false
CONF[:BACK_TRACE_LIMIT]=16
CONF[:CONTEXT_MODE]=3
CONF[:DEBUG_LEVEL]=1
CONF[:ECHO]=nil
CONF[:EVAL_HISTORY]=nil
@monde
monde / gist:1279860
Created October 12, 2011 00:18 — forked from joevandyk/gist:1279847
refresh css js
javascript:(function(){var img = document.createElement('img'); img.src = "/css-refresh?" + Date.now(); var h,a,f;a=document.getElementsByTagName('link');for(h=0;h<a.length;h++){f=a[h];if(f.rel.toLowerCase().match(/stylesheet/)&&f.href){var g=f.href.replace(/(&|%5C?)forceReload=\d+/,'');f.href=g+(g.match(/\?/)?'&':'?')+'forceReload='+(new Date().valueOf())}};})()
@monde
monde / gist:1134657
Created August 9, 2011 17:29 — forked from clarkware/gist:1046693
View Source for Ruby
# Toss this in your ~/.irbrc file for a convenient way
# to peruse Ruby source code in TextMate. This
# only works in Ruby 1.9!
#
# Use it in irb like so:
#
# >> require 'active_record'
# >> ActiveRecord::Base.source_for_method(:create)
class Object
require 'test/unit'
module M
def f
# WINNING
self.class::CONSTANT + 1
end
end
class C