This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
element.addEventListener( 'webkitTransitionEnd', function(){ console.log("yay"); }, false ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var f = function(){ | |
console.log(this.x); | |
}; | |
var o1 = { | |
x: 7, | |
a: f | |
}; | |
o1.a(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.bind(generatePage, this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff stash@{0} | mate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(var i = 0; i < 10; i++){ | |
if(i % 2 == 0) { | |
console.log("even"); | |
} else { | |
console.log("odd"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(var i = 0; i < 10; i++) | |
(i % 2 == 0) | |
? console.log("even") | |
: console.log("odd") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var someElementRef; | |
// ... time passes and someElementRef gets filled. Now we can do: | |
$(someElementRef).find(".some .fun .selector"); | |
// Or, even better, cache the jQuery result before doing the above | |
// Only run this once so we don't keep re-jQueryifying | |
someElementRef = $("#bob"); | |
// Hammer this object with .find() as often as desired |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<span> | |
<span>The <a>quick</a> brown</span> | |
<span>fox. jump. ed </span> | |
over the lazy dogs. | |
</span> | |
</p> | |
["","","",""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<span> | |
<span>The <a>quick</a> brown</span> | |
<span>fox. jump. ed </span> | |
over the lazy dogs. | |
</span> | |
</p> | |
["","","",""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<span> | |
<span>The <a>quick</a> brown</span> | |
<span>fox. jump. ed </span> | |
over the lazy dogs. | |
</span> | |
</p> | |
["","","",""] |