2013-08-01から1ヶ月間の記事一覧
$xy = explode(':', '123:456'); echo $xy[0]; // 123
httpのURL を、普通のファイルのように開ける require 'open-uri' open("http://www.ruby-lang.org") {|f| f.each_line {|line| p line} } 結果 "<html>\n" " <head>\n" " <script type=\"text/javascript\">\n" " var languages = {\n" " \"bg\": \"bg\",\n" " \"de\": \"de\",\n" " \"es\": \"es\",\n" "</head></html>…
下記のようなファイルはgitで管理しないので管理対象外とする git status .DS_Store .~lock.Document.ods#.gitignoreファイルを作成する vim .gitignore 1 .~lock* 2 .DS_Store.gitignoreをコミットする git add .gitignore git commit .gitignore管理対象外…