Skip to content

Instantly share code, notes, and snippets.

Avatar
👀

Matheus Felipe matbhz

👀
View GitHub Profile
View gist:9926783
function testAnim(x) {
$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
$(this).removeClass();
});
};
View gist:7647127
$( document ).click(function() {
$('#condition').text(<%= @weapon.condition %>)
$('#condition').effect("highlight");
});
View gist:5880366
irb(main):001:0> var = "hi"
=> "hi"
irb(main):003:0> h = { :a => 1, :b => var}
=> {:a=>1, :b=>"hi"}
irb(main):004:0> var
=> "hi"
irb(main):005:0> h
=> {:a=>1, :b=>"hi"}
irb(main):006:0> var = "bye"
=> "bye"
View gist:5880297
irb(main):032:0> a = 1
=> 1
irb(main):033:0> b = a
=> 1
irb(main):034:0> a = 2
=> 2
irb(main):035:0> b
=> 1
View gist:5880286
irb(main):023:0> hash = { :a => 1, :b => var}
=> {:a=>1, :b=>6}
irb(main):024:0> var = 7
=> 7
irb(main):025:0> hash
=> {:a=>1, :b=>6}
You can’t perform that action at this time.