Skip to content

Instantly share code, notes, and snippets.

Kirk Adoniadis kirkytullins

Block or report user

Report or block kirkytullins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kirkytullins / test.html
Created Aug 14, 2014
basic html + bootstrap page
View test.html
<!DOCTYPE html>
<title>Bootstrap 101 Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="">
<!-- Optional theme -->
<link rel="stylesheet" href="">
View gist:8819217
module MethodInterception
def method_added(meth)
return unless (@intercepted_methods ||= []).include?(meth) && !@recursing
@recursing = true # protect against infinite recursion
old_meth = instance_method(meth)
define_method(meth) do |*args, &block|
puts 'before'
old_meth.bind(self).call(*args, &block)
You can’t perform that action at this time.