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
// matchesCssRule.js | |
// Array.forEach(contextObject, callbackfn [, thisArg]) | |
if (typeof Array.forEach !== 'function') { | |
Array.forEach = (function (forEach) { | |
return function (contextObject, callbackfn /*, thisArg*/) { | |
return forEach.call(contextObject, callbackfn, arguments[2]); | |
}; |
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
/** | |
* ECMAScript5.js (ECMA-262 Edition 5) | |
* | |
* @version 1.0 | |
* @author think49 | |
*/ | |
// 15.4.3.2 Array.isArray ( arg ) | |
// | |
// 1. If Type(arg) is not Object, return false. |
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
var XMLHttpRequest = (typeof XMLHttpRequest === 'function' || typeof XMLHttpRequest === 'object') ? XMLHttpRequest : (function () { | |
var i, l; | |
for (i = 0, l = arguments.length; i < l; i++) { | |
try { | |
arguments[i](); | |
return arguments[i]; | |
} | |
catch (error) {} | |
} |
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
// TableEditor.js | |
var TableEditor = (function () { | |
var prototype; | |
function TableEditor () { | |
this.init.apply(this, arguments); | |
return this; | |
} |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>setLineElementByBRElement.js</title> | |
<style type="text/css"><!-- | |
/* default */ | |
body { margin: 0; padding: 1em; line-height: 100%; } | |
h1, h2, h3, h4, h5, h6 { font-weight: bold; color: #202020; } | |
h1 { margin: 1em 0; padding: 0; font-size: 150%; } |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>getFormElements.js</title> | |
<style type="text/css"><!-- | |
/* default */ | |
body { margin: 0; padding: 1em; } | |
h1,h2,h3,h4,h5,h6 { font-weight: bold; color: #202020; } |
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
function RFC4180Plus () { | |
var | |
CRLF = '(?:\r\n|[\r\n])', | |
escaped = '"(?:""|[^"])*"', | |
non_escaped = '[^\n\r",]*', | |
field = '(?:' + escaped + '|' + non_escaped + ')', | |
record = field + '(?:,' + field + ')*', | |
file = record + '(?:' + CRLF + record + ')*' + CRLF + '?'; |
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
/** | |
* rfc4180.js | |
* CSV parser. | |
* | |
* @version 1.0.1 | |
* @author think49 | |
* @url https://gist.github.com/606500 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
* @see <a href="http://www.ietf.org/rfc/rfc4180.txt">http://www.ietf.org/rfc/rfc4180.txt</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
// dumpObject.js | |
// オブジェクトを整形文字列にして返します | |
function dumpObject (obj) { | |
var p, result; | |
result = []; | |
for (p in obj) { | |
if (obj.hasOwnProperty(p)) { |
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
/** | |
* URIParameter.js | |
* | |
* @version 1.0.2 | |
* @author think49 | |
*/ | |
var URIParameter = (function () { | |
/** |