Googleマップでルートを検索し、ルート詳細を表示してから実行してください。
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 | |
require_once 'FizzBuzz.php'; | |
class FizzBuzzTest extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @test | |
*/ | |
public function say() | |
{ | |
$fizzBuzz = new FizzBuzz(); |
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
{ | |
"manifest_version": 2, | |
"name": "Name of this extension", | |
"version": "0.1", // 新しい拡張を公開するたびに上げていく | |
"description": "Description of this extension", | |
"icons": { | |
"128": "icon128.png" // chrome://extensions に表示されるアイコン。128x128 | |
}, | |
"page_action": { | |
"default_icon": "icon128.png", // アドレスバーに表示されるアイコン。19x19, 38x38 を準備しておくべき? |
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 urlRegExp = new RegExp('^https?://www.google.com/maps/preview'); // アドレスバーの横にアイコンを表示するときのURL正規表現 | |
function showIcon(tabId, changeInfo, tab) { | |
if (tab.url.match(urlRegExp)) { | |
chrome.pageAction.show(tabId); | |
} | |
} | |
chrome.tabs.onUpdated.addListener(showIcon); |
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
try { | |
var f = function (d) { | |
return d.getFullYear() + ("0" + (d.getMonth() + 1)).slice(-2) + ("0" + d.getDate()).slice(-2); | |
}; | |
var c = document.cookie; | |
var i = c.indexOf('__utma'); | |
var s = null; | |
if (i < 0) { | |
s = f(new Date()); | |
} else { |
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
http://instagram.com/developer/embedding/ | |
を参考にしてサムネイルを表示する。 |
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
ぷよ http://ja.wikipedia.org/wiki/%E3%81%B7%E3%82%88%E3%81%B7%E3%82%88 | |
<左側のプレーヤー> | |
a 左移動 | |
d 右移動 | |
s 右回転 | |
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
ライフゲーム http://ja.wikipedia.org/wiki/%E3%83%A9%E3%82%A4%E3%83%95%E3%82%B2%E3%83%BC%E3%83%A0 | |
size セルのサイズ | |
sparsity 初期状態での生物のまばらさ | |
wait mills 実行時の待ち時間(ミリ秒) |
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
フルスクリーンにして遊んでください。 | |
(スペースを押すと画面がスクロールしてしまうので) | |
<登場人物> | |
○自分 | |
●敵 | |
■爆弾 | |
□炎 | |
<ルール> |
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
TypeScriptを使ってシューティングゲームを作ってみた。 | |
敵に当たるとゲームオーバー。 | |
<操作方法> | |
・左右キーで移動。スペースキーで発射。 | |
<開発メモ> | |
・当たり判定にVisitorパターンを使っている。 |
NewerOlder