Skip to content

Instantly share code, notes, and snippets.

View otiai10's full-sized avatar
👋

Hiromu OCHIAI otiai10

👋
View GitHub Profile
@otiai10
otiai10 / ApiResp.md
Last active December 26, 2015 06:49
工廠建造・開発完了時APIエンドポイント
[18:40:03] ✔ go test can't load package: package github.com/otiai10/anisoon: no Go source files in ~/proj/go/src/github.com/otiai10/anisoon
@otiai10
otiai10 / quest_id.md
Last active December 27, 2015 18:39
任務id調査

デイリー

任務名 任務id
敵艦隊を撃破せよ! 201
敵艦隊主力を撃滅せよ! 216
敵空母を3隻撃沈せよ 211
敵艦隊を10回邀撃せよ! 210
敵補給艦を3隻撃沈せよ! 218
南西諸島海域の制海権を握れ! 226
/**
* 直近朝5時のタイムスタンプを返す
* @returns {number}
*/
Util.getDailyResetTimestamp = function() {
var theDay, today;
theDay = today = new Date();
if (today.getHours() < 5) {
@otiai10
otiai10 / regex.js
Created November 11, 2013 08:33
regex in javascript
var re = new RegExp("\\{\\{if " + "hoge" + "\\}\\}(.*)\\{\\{\\/if\\}\\}", "g");
var str = "前 {{if hoge}}ここはifの中{{/if}}あと";
console.log(re.exec(str));
/*
[ '{{if hoge}}ここはifの中{{/if}}',
'ここはifの中',
index: 2,
input: '前 {{if hoge}}ここはifの中{{/if}}あと' ]
*/
@otiai10
otiai10 / problem-definition.md
Last active December 28, 2015 09:49
Chrome31と一部OSの組み合わせによるwebkitNotificationsの不具合? https://productforums.google.com/forum/ にて質問済み

MacOSX 10.8 以下の環境で Chrome バージョン 31.0.1650.48 を使っています。 Chrome Extension のJavaScriptのコード内で以下のような現象を確認しています。

(A) chrome.notifications.create を使った場合 message で指定する文字は正常に画面領域に描画されます。

(B) webkitNotifications.createNotification を使った場合 message で指定する文字は

m(_ _)m < v0.5.0.13 shipしました. 1時間以内にGoogleウェブストアに反映されるはずです
★ ウィジェット化してなくても遠征リマインダを有効にするように戻しまし
v0.5.0.13は以上です
< なぜかこれtwitter.comでポストできないよう
@otiai10
otiai10 / true.js
Created November 28, 2013 02:25
is really true?
var _int1 = 1;
var _int2 = 2;
var _str = "hoge";
var _boo = true;
isTrue(_int1, '1');
isTrue(_int2, '2');
isTrue(_str, 'str');
isTrue(_boo, 'bool');
@otiai10
otiai10 / pre-action-api.md
Last active December 29, 2015 16:59
任務受け忘れ防止アラート実装にむけて、pre-action api
action endpoint sequence
入渠 api_get_member/ndock ndock -> ship2 -> useitem
工廠 api_get_member/record
演習 api_get_member/practice
出撃 api_get_master/mapinfo
遠征 api_get_master/mission
  • 懸念
  • 汎用的に呼ばれているのであれば、意図しないときに引っかかることもあるワケで
@otiai10
otiai10 / test.md
Created December 1, 2013 15:58
markdown

\What is this?