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
- Language: C, D, Ruby, Java, JavaScript | |
+ Language: C, D, Ruby, Java, JavaScript, Perl | |
- テスト大事ってことはわかるけど書き方わかんない>< | |
+ 仕事コードではTDDするようになりました | |
- 未来はHTML5でモバイルしかない! | |
- iOSとAndroidとWindows PhoneとあとHogeとかFugaみたいなプラットフォームに対応したいならコードベースを統一できるWebしかない! | |
+ Push通知したいのでネイティブしかありませんでした | |
+ Android書けるようになりました |
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
#!/usr/bin/env ruby | |
if ARGV.size != 3 | |
puts "usage: ack-sed <pattern> <replace-string> <dir>" | |
end | |
query, replace, dir = ARGV | |
system("ack #{query} #{dir} | cut -d':' -f1 | uniq | LANG=C xargs sed -i -e 's/#{query}/#{replace}/g'") |