Skip to content

Instantly share code, notes, and snippets.

@otiai10
otiai10 / raw.log
Last active August 29, 2015 14:13
android the first step
落合 展
以前マルフォイにレクチャーしてもらった内容、メモってなくて泣いております。ひとつだけ質問させていただいてもよいですか、もし起きてたら
石丸 翔也
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}
@takashi
takashi / tips.md
Last active August 29, 2015 14:05
for my c++ programming study with oF

c++ tips

debugはcoutで

int hoge = 100
cout << hoge << endl;  // 100

#pragma once

@wingrunr21
wingrunr21 / catchall.coffee
Created October 23, 2013 13:27
A simple catchall script for Hubot to process anything it doesn't know how to handle via Wolfram|Alpha
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']
@otiai10
otiai10 / install_go.md
Last active December 23, 2015 06:49
install Go into Debian squeeze 32bit and install revel

install mercurial (hg)

% sudo apt-get install mercurial

bind GOROOT and export GOPATH

# {{{ GO
export GOROOT=$HOME/go # goコマンドへのパス/bin (exportせずとも、PATHへのバインドさえすれば良い気もする) る)
export GOPATH=$HOME/go/.packages # go get でインストールしてくるパッケージへのパス/bin/bin