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
.PHONY: test | |
test: | |
@find test/test-*.js | xargs -n 1 -t node |
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
// ==UserScript== | |
// @name Toggle Google results page language | |
// @namespace http://bitmap.dyndns.org/ | |
// @description Japanese <-> English | |
// @include http://*.google.*/search?* | |
// ==/UserScript== | |
(function() { | |
window.__toggleGoogleLinkClickFlag = false; | |
document.addEventListener('mousedown', function(e) { | |
window.__toggleGoogleLinkClickFlag = ( e.target.tagName == 'A' ); |
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
.gwt-HTML { | |
font-size:11px!important; | |
} | |
textarea.postBarTextarea { | |
background:#eee!important; | |
color:#333!important; | |
} |
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 a = 'global'; | |
Object.prototype.b = 'Object'; | |
function test1() { | |
console.log(a); | |
console.log(b); | |
} | |
function test2() { | |
var b = 'inner'; |
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
// ノーマルな形 | |
// ※ところで今の仕様書に FunctionDeclaration っていう Production が無いのはなぜ? | |
int func(int a) { | |
return a; | |
} | |
// FunctionExpression を使う場合。 | |
// Dart に Function Type はあるけど (T) -> <T> っていうよくわからん型なので、 | |
// FunctionTypeAlias (エイリアス)を定義する。らしい。 | |
typedef int A(int a); |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my %testhash = ( | |
test => 1, | |
hoge => 2, | |
fuga => 3, | |
); |
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
// ... | |
concat: { | |
core: { | |
src: ['src/brook.js','src/brook/util.js','src/brook/lambda.js','src/brook/channel.js','src/brook/model.js'], | |
dest: 'build/brook-core.js' | |
}, | |
htp: { | |
src: ['<file_enclose_with_namespace:brook.view.htmltemplate.core:lib/html-template-core.js>'], | |
dest: 'build/brook-view-htmltemplate-core.js' | |
}, |
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
window.onbeforeunload = function() { | |
document.body.innerHTML = ''; | |
}; |
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> | |
<head> | |
</head> | |
<body onload="document.getElementById('test').innerHTML='JS time:'+(new Date()).toString();"> | |
<?php | |
echo "PHP time:" . date("Y/m/d g:i:s"); | |
?> | |
<p id="test"></p> |
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
<?php | |
header("Cache-Control:no-cache"); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body onload="document.getElementById('test').innerHTML='JS time:'+(new Date()).toString();" onunload=""> | |
<?php | |
echo "PHP time:" . date("Y/m/d g:i:s"); |
OlderNewer