c++ tips
int hoge = 100
cout << hoge << endl; // 100| 落合 展 | |
| 以前マルフォイにレクチャーしてもらった内容、メモってなくて泣いております。ひとつだけ質問させていただいてもよいですか、もし起きてたら | |
| 石丸 翔也 | |
| 0:22 | |
| 石丸 翔也 | |
| はい!大丈夫です! | |
| 落合 展 | |
| 0:22 | |
| 落合 展 | |
| 神 |
| declare | |
| fun {Fact N} | |
| if N == 0 then 1 else N * {Fact N - 1} end | |
| end | |
| declare | |
| fun {AddList L1 L2} | |
| case L1 of H1 | T1 then | |
| case L2 of H2 | T2 then | |
| H1 + H2 | {AddList T1 T2} |
| Wolfram = require('wolfram-alpha').createClient(process.env.HUBOT_WOLFRAM_APPID) | |
| module.exports = (robot) -> | |
| robot.catchAll (msg) -> | |
| r = new RegExp "^(?:#{robot.alias}|#{robot.name}) (.*)", "i" | |
| matches = msg.message.text.match(r) | |
| if matches != null && matches.length > 1 | |
| Wolfram.query matches[1], (e, result) -> | |
| if result and result.length > 0 | |
| msg.send result[1]['subpods'][0]['text'] |