Skip to content

Instantly share code, notes, and snippets.

View matbhz's full-sized avatar
👀

Matheus Felipe matbhz

👀
  • Foundation
  • Vancouver
View GitHub Profile
$( document ).click(function() {
$('#condition').text(<%= @weapon.condition %>)
$('#condition').effect("highlight");
});
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"
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
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}
function testAnim(x) {
$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
$(this).removeClass();
});
};