- 牛乳を買う
- 卵を買う
- 食パン(6枚切り)を買う
- フライパンを買う
- ボールを買う
- フレンチトーストを作る
- フレンチトーストを食べる
- そんなことよりおうどん食べたい
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 'nkf' | |
class Convert | |
def self.to_han(text) | |
puts "----- to_han -----" | |
print_cp(text) | |
text = NKF.nkf('-wZ0', text) | |
print_cp(text) | |
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
source 'https://rubygems.org' | |
ruby '2.1.5' | |
gem 'i18n' | |
gem 'activesupport' | |
gem 'octokit' |
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
# -*- coding: utf-8 -*- | |
@fg = "\x1b[38;5;" | |
@bg = "\x1b[48;5;" | |
@rs = "\x1b[0m" | |
def color(code) | |
number = '%3d' % code | |
"#{@bg}#{code}m #{number}#{@rs}#{@fg}#{code}m #{number}#{@rs} " | |
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
module NokogiriUtils | |
extend self | |
# http://gist.github.com/370755 | |
def hash_from_node(node) | |
{ node.root.name.to_sym => xml_node_to_hash(node.root) } | |
end | |
def xml_node_to_hash(node) | |
return to_value(node.content.to_s) unless node.element? |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
tmd45@tmd45mac $ brew list --versions | |
autoconf 2.69 | |
cmake 2.8.11.2 | |
gdbm 1.10 | |
git 1.8.3.4 | |
openssl 1.0.1e | |
pcre 8.33 | |
pkg-config 0.28 | |
rbenv 0.4.0 | |
readline 6.2.4 |
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
tmd45@tmd45mba $ rbenv versions | |
* system (set by /Users/tmd45/.rbenv/version) | |
1.9.3-p448 | |
2.0.0-p247 | |
tmd45@tmd45mba $ rbenv global 1.9.3-p448 | |
tmd45@tmd45mba $ rbenv versions | |
system | |
* 1.9.3-p448 (set by /Users/tmd45/.rbenv/version) | |
2.0.0-p247 |
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
vim-surround | |
vim-endwise | |
unite-rake | |
ruby-matchit | |
unite.vim | |
unite-reek | |
vim-rspec | |
unite-rails_best_practices | |
tcomment_vim | |
vim-ref |
Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。
- Composer/Packagist - パッケージと依存マネージャー
- Composer Installers - マルチフレームワーク Composer ライブラリインストーラー。