- 麦茶 * 2
- 爽健美茶 * 1.5
This file contains hidden or 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 Payment | |
def payment_class(payment_type) | |
"#{payment_type}Payment" | |
end | |
def pay(payment_type) | |
Object.const_get(payment_class payment_type).new.commit | |
end | |
end |
This file contains hidden or 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
IFCONFIG(8) BSD System Manager's Manual IFCONFIG(8) | |
NAME | |
ifconfig -- configure network interface parameters | |
SYNOPSIS | |
ifconfig [-L] [-m] [-r] interface [create] [address_family] [address | |
[dest_address]] [parameters] | |
ifconfig interface destroy | |
ifconfig -a [-L] [-d] [-m] [-r] [-u] [-v] [address_family] |
This file contains hidden or 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
IPCONFIG(8) BSD System Manager's Manual IPCONFIG(8) | |
NAME | |
ipconfig -- view and control IP configuration state | |
SYNOPSIS | |
ipconfig waitall | |
ipconfig getifaddr interface-name | |
ipconfig ifcount | |
ipconfig getoption interface-name (option-name | option-code) |
This file contains hidden or 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
function! MarkdownToRedmine() | |
%s/######/h6./g | |
%s/#####/h5./g | |
%s/####/h4./g | |
%s/###/h3./g | |
%s/##/h2./g | |
%s/#/h1./g | |
%s/```\(.\+\)/<pre><code class=\"\1\">/g | |
%s/```/<\/pre>/g | |
endfunction |
This file contains hidden or 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
/Users/onigra/sandbox/vendor/bundle/ruby/2.1.0/extensions/x86_64-darwin-13/2.1.0/nokogiri-1.6.1/nokogiri/nokogiri.bundle: [BUG] Segmentation fault at 0x00000000000438 | |
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0] | |
-- Crash Report log information -------------------------------------------- | |
See Crash Report log file under the one of following: | |
* ~/Library/Logs/CrashReporter | |
* /Library/Logs/CrashReporter | |
* ~/Library/Logs/DiagnosticReports | |
* /Library/Logs/DiagnosticReports | |
for more details. |
This file contains hidden or 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 String | |
def to_ayp | |
ayp_dic = { | |
'あ' => 'ぁ', | |
'い' => 'ぃ', | |
'う' => 'ぅ', | |
'え' => 'ぇ', | |
'お' => 'ぉ', | |
'や' => 'ゃ', | |
'ゆ' => 'ゅ', |
Homebrew使う。 setup.shでホームディレクトリに Brewfile がリンクされるので、それを使って brew bundle でインストールする
- git clone https://github.com/onigra/dotfiles.git
- xcode command line toolのインストールを求められるのでインストール
- dotfiles/setup.sh を実行
- brew bundle
- macvim-kaoriya をインストール
This file contains hidden or 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 'open3' | |
formula = Open3.capture3("brew list") | |
File.open("Brewfile", "w") do |file| | |
file << "update\n" | |
file << "upgrade\n" | |
file << "\n" | |
formula[0].split(/\n/).each do |f| |