- rubyコマンド
- バージョン 1.8/1.9
- ライブラリ
- require
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
# original Ruby Twitter Gem : example/helper/config_store.rb | |
# modified at 2009/08/13 | |
require 'yaml' | |
class ConfigStore | |
attr_reader :file | |
def initialize(file) | |
@file = file |
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/sh | |
while : | |
do | |
curl -v -X POST -d 'pronounce=ヴィム' -d 'word=linux' http://yomikata.org/ajax/vote.php | |
done |
kanazawa.rb meetup #1 で喋るネタの洗い出し
- rspec + capybara で PHP アプリのテスト
- ツールの紹介を軽めにしてデモに近くやれればいいなぁ
- gyunyu で RTM からレポートのようなものを作る
- あんまり面白くなさそう
- 入門向けの本とかサービスとか探してみた
- すげーしんどそう
- rsp の紹介
- まだほとんど分かんない
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
javascript:location.href="yorufukurou://pasteurl/"+encodeURIComponent(document.title+" "+location.href); |
by https://github.com/erlang/otp/wiki/Writing-good-commit-messages
良いコミットメッセージは、重要な役割が、少なくとも三つあります。
- レビューするプロセスをスピードアップする。
- 良いリリースノートを書く手助けになる。
- 将来、Erlang/OTPのメンテナンスを手助けするため(もしかしたら君かも!)。それは五年後の未来において、なんでコードの中で特定の変更が加えられたのか、あるいは特定の機能が追加されたのか見つけるため、ということ。
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
/** | |
* WebBeeper 2A03 | |
* Origin : http://www.g200kg.com/en/docs/webbeeper | |
* Author : g200kg氏 | |
* Comment: mohayonao | |
* Blog : http://mohayonao.hatenablog.com/entry/2012/07/12/093004 | |
*/ | |
var app; | |
var audioif; |
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
require 'rspec' | |
# This smells | |
[[ 1, 2, 3], | |
[ 4, 8, 12], | |
[-2, 3, 1], | |
[ 0, 0, 0]].each do |a, b, c| | |
describe "#{a} + #{b}" do | |
subject { a + b } | |
it { should == c } |