// プロパティ
var hoge = function(arg) {
this.x = 5;
this.y = 10;
this.z = arg;
};
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
sub vcl_recv { | |
if (req.request == "POST") { | |
ban("req.url ~ /"); | |
return (pipe); # pipe is faster than pass | |
} else if (req.request != "GET") { | |
return (pipe); | |
} else { | |
return (lookup); | |
} | |
} |
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
// titleとcomment両方が取れるまでPUTを待つ | |
var title, comment; | |
var titleDeferred = (function() { | |
var dInner = new $.Deferred(); | |
self.trigger('getTitle', todo, function(res) { | |
title = res; | |
dInner.resolve(); | |
}); | |
return dInner.promise(); |
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
// constructor | |
var hoge = function(arg) { | |
this.x = 5; | |
this.y = 10; | |
this.z = arg; | |
}; | |
// メソッド | |
hoge.prototype = { | |
f1: 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
logic.js: identifier _ Unknown global name |
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
# スクリプト読み込み | |
source $HOME/.git-completion.bash | |
source $HOME/.git-prompt.sh | |
# プロンプトに各種情報を表示 | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
GIT_PS1_SHOWUPSTREAM=1 | |
GIT_PS1_SHOWUNTRACKEDFILES= | |
GIT_PS1_SHOWSTASHSTATE=1 |
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
tm.define("GameScene", { | |
superClass: "tm.app.Scene", | |
level: 0, // ゲームレベル(初回0。徐々に上がる) | |
init: function() { | |
..... | |
window.player = Player().addChildTo(this); | |
player.playerIcon.on('collision', function() { | |
player.playerIcon.off('collision'); | |
self.timer.off('levelUp'); |
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
res.render('watch', { | |
id: 777, | |
self: true | |
}); |
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
Rendering 100000 templates: | |
ECT | |
Escaped : 2180ms | |
Unescaped : 133ms | |
Total : 2313ms | |
EJS without `with` | |
Escaped : 4526ms | |
Unescaped : 485ms |
OlderNewer