- private variable
- sinon用非公開変数群
- div documentオブジェクトが定義されていれば、document.createElementで div要素を作成する。
- hasOwn Object.prototype.hasOwnPropertyを参照する。
- sinon
外部に公開するオブジェクト
- function
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
server: http://localhost:4224 | |
load: | |
- lib/*.js | |
- src/*.js | |
- test/*.js |
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
@charset "utf-8"; | |
@mixin vpcss($key, $val){ | |
-webkit-#{$key}: $val; | |
-moz-#{$key}: $val; | |
-ms-#{$key}: $val; | |
-o-#{$key}: $val; | |
#{$key}: $val; | |
} |
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 page = new WebPage(), | |
url = 'http://www.yahoo.co.jp'; | |
page.open(url, function (status) { | |
if (status !== 'success') { | |
console.log('Unable to access network'); | |
} else { | |
var results = page.evaluate(function() { | |
var list = document.querySelectorAll('a'), pizza = [], i; | |
for (i = 0; i < list.length; i++) { |
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
http://stackoverflow.com/questions/300855/looking-for-a-better-javascript-unit-test-tool | |
http://d.hatena.ne.jp/goyoki/20100223/1266939139 | |
http://d.hatena.ne.jp/babie/20100226/1267158419 | |
http://d.hatena.ne.jp/Yoshiori/20100224/1267015034 | |
http://cjohansen.no/talks/2011/xp-meetup/#1 | |
http://cjohansen.no/talks/2011/javabin-s/#1 | |
http://cjohansen.no/talks/2011/busterjs/#1 | |
http://azu.github.com/slide/Kamakura/busterJS.html#slide1 |
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
main(){ | |
var xxx = {'one':1, "two":2}; // key must be string. | |
print(xxx["one"]); // NG : xxx.one | |
print(xxx['two']); | |
var a,b=100; | |
final f = 20; | |
print(a); | |
print(b); | |
// f = 100; // 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
main(){ | |
curry(Function fun, carried) => (param) { fun(carried, param); }; | |
greet(String greeting, String name) => print(greeting + " " + name); | |
var hi = curry(greet, "Hi!! "); | |
hi('ryuone.'); | |
} | |
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
# | |
# Apacheのモジュール mod_rewriteを有効にする。(Ubuntu:sudo a2enmod rewrite) | |
# | |
RewriteEngine on # 1) | |
RewriteRule ^([0-9\-]+)\.html$ index.fcgi?date=$1 # 2) | |
# | |
# http://www.ryuone.com/diary/20110806.html | |
# でアクセスした場合、2)で | |
# http://www.ryuone.com/diary/index.fcgi?date=20110806 |
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> | |
<head> | |
<title>mouseenter/mouseleave</title> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js'></script> | |
<script> | |
$(function(){ | |
// withinElementでは無く、deleteを呼び出すようになるため、#dv31/#div32に移動した際にもイベントが発生する。 | |
//$('#dv2').bind('mouseenter', {selector: $("#dv31").get(0)}, function(e){console.log('mouseenter dv2')}); | |
//$('#dv2').bind('mouseleave', {selector: $("#dv32").get(0)}, function(e){console.log('mouseleave dv2')}); |
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
diff --git a/deps/v8/src/compiler.cc b/deps/v8/src/compiler.cc | |
index 18f54c2..b4d20f1 100755 | |
--- a/deps/v8/src/compiler.cc | |
+++ b/deps/v8/src/compiler.cc | |
@@ -800,7 +800,7 @@ void Compiler::RecordFunctionCompilation(Logger::LogEventsAndTags tag, | |
} | |
} | |
- GDBJIT(AddCode(name, | |
+ GDBJIT(AddCode(Handle<String>(shared->DebugName()), |