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
foo = Time.now.to_s #=> "2014-05-14 15:35:01 +0900" | |
bar = Time.now.to_s #=> "2014-05-14 15:35:32 +0900" | |
foo == bar #=> false |
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
docker run --name mysql -d sameersbn/mysql:latest |
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
defmodule Foo do | |
def loop do | |
receive do | |
{:hello, msg} -> | |
IO.puts msg | |
loop | |
{:world, _} -> | |
IO.puts "bad" | |
loop | |
end |
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
git clone git@github.com:tosik/cradol.git | |
cd cradol | |
git submodule update --init | |
cd BlueCarrot | |
git checkout master | |
git remote add private git@github.com:tosik/BlueCarrot.git | |
cd ../ | |
cd automaze |
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
#!/bin/ruby | |
require 'open-uri' | |
user_id = 1168 | |
pages = (1..16) | |
url_prefix = "http://www.gumonji.net/cgi-bin/" | |
url_no_page_num = url_prefix + "diary_list.cgi?order=id&user_id=" + user_id.to_s + "&page=" |
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
class Calc | |
def initialize | |
@value = 0 | |
end | |
def add(value) | |
@value += value | |
end | |
def sub(value) |
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
* ゲームの目的 | |
* 死なずに出口を見つける | |
* 基本ルール | |
* 一人称二次元迷路 | |
* 出口まで移動するとゴール | |
* 死亡すると失敗 | |
* 迷宮は階層構造になっている | |
* 階段を登る | |
* 一歩移動・アイテム使用で時間が経つ |
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
hello, vim gist plugin |
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
hello, vim gist plugin |
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
footage new PackageName | |
script/generate class foo.bar.Baz | |
script/generate interface foo.bar.IBaz | |
script/destroy | |
script/install lib as3-signals | |
rake build | |
rake test | |
rake ci | |
rake run |