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
平成29/2017年2月 | |
日 月 火 水 木 金 土 | |
1 2 3 4 | |
5 6 7 8 9 10 11 | |
12 13 14 15 16 17 18 | |
19 20 21 22 23 24 25 | |
26 27 28 |
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
'use strict'; | |
// tarai(x: number, y: number, z: number): number; | |
const tarai = (x, y, z) => x <= y ? y : | |
tarai(tarai(x - 1, y, z), | |
tarai(y - 1, z, x), | |
tarai(z - 1, x, y)); | |
bench('takeuchi tarai', tarai, 10, 5, 0); | |
bench('takeuchi tarai', tarai, 12, 6, 0); |
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
$ node -v | |
v6.x.x | |
$ npm -v | |
v3.x.x |
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
Object.setPrototypeOf(arguments, Array.prototype); | |
// または | |
arguments.__proto__ = Array.prototype; |
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
'use strict'; | |
require('express')() | |
.use(require('express').static('.')) | |
.use(require('serve-index')('.', {icons: true})) | |
.listen(process.env.PORT || 3000); |
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
require('http').createServer((req, res) => res.end('hello')).listen(process.env.PORT || 3000); |
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
// ズンズンズンズンドコキ・ヨ・シ! | |
void function () { | |
'use strict'; | |
var phrase = 'ズンズンズンズンドコ'; | |
var puts = typeof process === 'object' && process && | |
typeof process.stdout === 'object' && process.stdout && | |
typeof process.stdout.write === 'function' ? |
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
'use strict'; | |
require('babel-polyfill'); // おまじない | |
//require('regenerator').runtime(); | |
console.log('main: start'); | |
main().then(function (val) { | |
console.log('main: finish:', val); | |
}); |
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> | |
<meta charset="UTF-8"> | |
<title>Excel example - Mithril.js</title> | |
<script src="/js/mithril.min.js"></script> | |
<!--[if IE]><script src="/js/es5-shim.min.js"></script><![endif]--> | |
<body> | |
<div id="$excelElement"></div> | |
</body> |
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> | |
<meta charset="UTF-8"> | |
<title>ToDo App - Mithril.js</title> | |
<script src="mithril.min.js"></script> | |
<!--[if IE]><script src="es5-shim.min.js"></script><![endif]--> | |
<body> | |
<table> | |
<tr valign="top"> |
NewerOlder