This file contains hidden or 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
/** | |
* getTextNodeList.js | |
* | |
* @version 1.1.7 | |
* @author think49 | |
* @url https://gist.github.com/658424 | |
*/ | |
var getTextNodeList = (function () { |
This file contains hidden or 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
/** | |
* natsort.js | |
* Sort an array using a "natural order" algorithm. | |
* | |
* @version 1.2.4 | |
* @author think49 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
* @url https://gist.github.com/660141 | |
* @see <a href="http://sourcefrog.net/projects/natsort/">Natural Order String Comparison</a> | |
*/ |
This file contains hidden or 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
// getFunctionName.js | |
function getFunctionName (func) { | |
var functionBody; | |
functionBody = /^function\s+([^\s(]*)(?=\()/.exec(func.toString()); | |
return functionBody ? functionBody[1] : null; // Function#name || null | |
} |
This file contains hidden or 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
/** | |
* get-primes.js | |
* Get a prime list. | |
* | |
* @version 1.0.1 | |
* @author think49 | |
* @url https://gist.github.com/675313 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ |
This file contains hidden or 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
/** | |
* toGreatestCommonDivisor.js | |
* @version 1.0 | |
* @author think49 | |
*/ | |
/** | |
* 最大公約数を求める。(ユークリッドの互除法) | |
* @function |
This file contains hidden or 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
/** | |
* ElementTraversal.js | |
* | |
* @version 1.0 | |
* @author think49 | |
*/ | |
/** | |
* Interface Node |
This file contains hidden or 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
/** | |
* removeNodesAll.js | |
* | |
* @version 1.1.1 | |
* @author think49 | |
*/ | |
/** | |
* Remove NodeList. | |
* @function |
This file contains hidden or 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
/** | |
* Div.js | |
* | |
* @version 0.2 | |
* @author think49 | |
*/ | |
/** | |
* DOM HTMLDivElement constructor. | |
* @constructor |
This file contains hidden or 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
[Patterns] | |
Name = "Array [2010/12/02] prototype v0.1.31" | |
Active = TRUE | |
Limit = 256 | |
Match = "array" | |
"$SET(ArrayStatements=var hoge = ["foo","\\"Hello, World!\\"",'test'];)" | |
"$LST(ArrayCommand)" | |
Replace = "ArrayCSVLine = $GET(ArrayCSVLine)\r\n" | |
"ArrayCSV = $GET(ArrayCSV)\r\n" | |
"\\9 = \9 " |
This file contains hidden or 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
/** | |
* addEvent.js | |
* | |
* @version 2.1.3 | |
* @author think49 | |
*/ | |
/** | |
* removeEventListener wrapper. | |
* @function |