Skip to content

Instantly share code, notes, and snippets.

View sasaco's full-sized avatar

笹澤ようすけ sasaco

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const worry = (today) => {
if( today < GW.length) {
return 'ゆっくりしてね';
else {
return '大丈夫?';
}
}
{
"username": "",
"password": "",
"node": {},
"notice_points": [],
"member": {},
"element": {},
"fix_node": {},
"fix_member": {},
"joint": {},
@sasaco
sasaco / optimize.py
Last active March 23, 2018 06:03
機械学習の理論を理解しようとしてから オセロ AI を作ってみた 〜何これ Alpha Zero 編〜 ref: https://qiita.com/sasaco/items/d249ee3493b5b85c6eb5
from reversi_zero.env.reversi_env import ReversiEnv, Player
def start(config: Config):
return OptimizeWorker(config).start()
class OptimizeWorker:
''' ↓ これが実際のスタート '''
def start(self):
@sasaco
sasaco / file0.txt
Last active March 23, 2018 08:56
機械学習の理論を理解しようとしてから オセロ AI を作ってみた 〜再始動‼〜 ref: https://qiita.com/sasaco/items/5e102063c256bf56e396
$ cd train-chainerai
$ python experiment.py
@sasaco
sasaco / Code
Last active May 13, 2017 10:24
Slack から メールを送れるようにしてみた ~その1~ ref: http://qiita.com/sasaco/items/1bcb0a6f33ef3ca88394
var json = JSON.parse(inputData.data);
var to_mail = (json.to.match(/([\w._-]+@[\w._-]+\.[\w._-]+)/gi) || [])[0];
output = [
{
to : to_mail,
cc: json.cc,
bcc: json.bcc,
subject: json.subject,
body: json.body,
@sasaco
sasaco / file1.txt
Last active May 11, 2017 01:20
セグウェイを自作してみた ~電子回路組立編~ ref: http://qiita.com/sasaco/items/b72819993790443877ec
MPU6050 connection successful
Initializing Mortor Driver digital pins...
3.80 -2.61 62.21
4.21 -2.29 59.24
3.96 -2.11 59.01
4.10 -2.42 60.26
3.86 -2.58 61.87
3.46 -2.83 64.63
4.27 -2.49 60.12
3.84 -2.40 60.95
@sasaco
sasaco / file0.txt
Last active November 12, 2016 00:50
Google Cloud Platform で Ubuntu python 開発環境を構築する ref: http://qiita.com/sasaco/items/39a0fde71a884e97453e
インスタンスが作成されたら、GCE 価格設定に従って請求先アカウントへの課金が開始します。
余分に課金されることがないよう、後でインスタンスを削除します。
@sasaco
sasaco / file0.txt
Last active March 23, 2018 06:03
機械学習の理論を理解せずに tensorflow で オセロ AI を作ってみた 〜いざ対戦編〜 ref: https://qiita.com/sasaco/items/f9aa608860eebb3026c1
$ python FightWithAI.py
------------- GAME START ---------------
*** userターン○ ***
0 1 2 3 4 5 6 7
8 9 10 11 12 13 14 15
16 17 18 19 20 21 22 23
24 25 26 ○ ● 29 30 31
32 33 34 ● ○ 37 38 39
40 41 42 43 44 45 46 47
@sasaco
sasaco / Reversi.py
Last active March 23, 2018 06:02
機械学習の理論を理解せずに tensorflow で オセロ AI を作ってみた 〜実装編〜 ref: https://qiita.com/sasaco/items/fdb9771c146cb877b183
self.enable_actions[0~63]