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
/** | |
* Returns true if any two numbers in list add up to num | |
*/ | |
function sumTwoMatch(list, num) { | |
var i = 0, | |
match = false, | |
list2; | |
for (; i < list.length; i++) { | |
list2 = list.slice(); |
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
/** | |
* Example use: | |
* $('div:icontains("Text in page")'); | |
* Will return jQuery object containing any/all of the following: | |
* <div>text in page</div> | |
* <div>TEXT in PAGE</div> | |
* <div>Text in page</div> | |
*/ | |
$.expr[':'].icontains = $.expr.createPseudo(function(text) { | |
return function(e) { |