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 --ignore-space-change |
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
/*jslint white: true, nomen: true, maxlen: 120, plusplus: true, */ | |
/*global _:false, $:false, define:false, require:false, */ | |
console.log('test for gist.el'); |
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
/*jslint white: true, nomen: true, maxlen: 120, plusplus: true, */ | |
/*global _:false, $:false, define:false, require:false, */ | |
var result = (function(array) { | |
if (array.length < 2) { return array; } | |
var base = array[Math.ceil(array.length / 2)], | |
central = [], | |
lower = [], |
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
/*jslint white: true, nomen: true, maxlen: 120, plusplus: true, node: true, */ | |
/*global module:false, */ | |
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
connect: { |
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 executeOnce = (function() { | |
var executed = false; | |
return function() { | |
if (!executed) { | |
executed = true; | |
console.log("executed"); | |
} | |
else { | |
console.log("already executed"); | |
} |
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
String.prototype.repeat = function(num) { | |
return new Array(num + 1).join(this); | |
}; | |
var sprintf = require('sprintf'), | |
util = require('util'), | |
colors = require('colors'), | |
total = 10000, | |
i; |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | |
<title>benchmark</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
(function() { |