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 Klass = function(text){ this.text = text; }; | |
Klass.prototype.method1 = function(){ return this.text + 'のメソッド' }; | |
var descriptor = Object.getOwnPropertyDescriptor(Klass.prototype, 'method1') | |
, originalFunction = descriptor.value; | |
descriptor.value = function(){ console.warn('method1 is deprecated'); return originalFunction.apply(this); }; | |
Object.defineProperty(Klass.prototype, 'method1', descriptor); | |
console.log(new Klass('メソッド1').method1()); |
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
events { | |
worker_connections 1024; | |
} | |
http { | |
# ロードバランサ | |
# 交互に中継する | |
upstream lb { | |
server localhost:8081; | |
server localhost:8082; | |
} |
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
setTimeout((function(cnt){ | |
console.log(cnt.length), | |
(cnt.length > new Number('99') || | |
arguments.callee((cnt.push(''), cnt))) | |
).bind(this, [''])) |
NewerOlder