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 strict'; | |
angular | |
//元々挿入されていたコード | |
.module('gotestappApp', [ | |
'ngCookies', | |
'ngResource', | |
'ngSanitize', | |
'ngRoute' | |
]) |
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
<div class="header"> | |
<ul class="nav nav-pills pull-right"> | |
<li class="active"><a ng-href="#">Home</a></li> | |
<li><a ng-href="#">About</a></li> | |
<li><a ng-href="#">Contact</a></li> | |
</ul> | |
<h3 class="text-muted">gotestapp</h3> | |
</div> | |
//挿入 |
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
module.exports.pattern = '^@%me% .+'; | |
module.exports.main = function(twi, data, cfg){ | |
var BOT_ID = cfg.my_screen_name; | |
var twUserId = data.user.screen_name; | |
var keyword = data.text.replace(new RegExp('^@' + BOT_ID + ' '), ''); | |
var replyStr = search(keyword); | |
//なぜかmatchedしてもundefinedしか返らない |
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
module.exports.pattern = '^.?@%me% .+'; | |
module.exports.main = function(twi, data, cfg){ | |
console.log('JIKANWARI called'); | |
var BOT_ID = cfg.my_screen_name; | |
var twUserId = data.user.screen_name; | |
var keyword = data.text.replace(new RegExp('^.?@' + BOT_ID + ' '), ''); |
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
putStr :: String -> IO () -まず型宣言- | |
putStr [] = return () -基底部- | |
putStr (x:xs) = do | |
putChar x -一文字表示- | |
putStr xs -残りを再帰的に表示- |
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
module.exports.pattern = '^.?@%me% .+'; | |
module.exports.main = function(twi, data, cfg){ | |
console.log('ENTETSUBUS called'); | |
var BOT_ID = cfg.my_screen_name; | |
var twUserId = data.user.screen_name; | |
var keyword = data.text.replace(new RegExp('^.?@' + BOT_ID + ' '), ''); |
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 oil = 10; //さいていげんほしい燃料 | |
var bullet = 0;//さいていげんほしい弾薬 | |
var steel = 10; //さいていげんほしい鋼材 | |
var bauxite =10;//さいていげんほしいボーキ | |
var bucket = 0; //さいていげんほしいばけつ | |
var kantai = 2; //かいほうしてるかんたいのかず | |
//ここまでをかえます |
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
//遠征に行ける艦隊の数が2で、すべての資源で時給10以上取れて、たまーにバケツ拾ってくれる組み合わせは以下のようにする | |
//ここをかえます | |
var oil = 10; //さいていげんほしい燃料 | |
var bullet = 10;//さいていげんほしい弾薬 | |
var steel = 10; //さいていげんほしい鋼材 | |
var bauxite =10;//さいていげんほしいボーキ | |
var bucket = 0.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
//ここをかえます | |
var oil = 10; //さいていげんほしい燃料 | |
var bullet = 10;//さいていげんほしい弾薬 | |
var steel = 10; //さいていげんほしい鋼材 | |
var bauxite =10;//さいていげんほしいボーキ | |
var bucket = 0.1; //さいていげんほしいばけつ | |
var kantai = 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
//燃料、弾薬、鋼材、ボーキの時給理論値 | |
var resourceSet = [ | |
[-32,120,0,0], | |
[-56,200,60,0], | |
[54,34,120,0], | |
[-31.2,72,0,0], | |
[111.67,133.33,13.33,13.33], | |
[-24,-24,0,120], | |
[-42,0,50,30], | |
[2.67,25.33,16.67,16.67], |
OlderNewer