2013-05-18から1日間の記事一覧
はてなAPIを利用して投稿する - by shigemk2の続きちょっとこういう風に改造してみた。さっきのは失敗 lines = 0 title = '' content = '' open('index.txt') {|file| while l = file.gets if lines == 0 title = l else content += l end lines += 1 end } …
open('index.txt') {|file| while l = file.gets if lines == 0 title = file.read else entry.content += file.read end lines += 1 end } puts client.create_entry collection_uri, entry テストテストテストテスト テスト
はてなAPIを利用して投稿する - by shigemk2の続きテストテストテストテスト テスト
tオプションでタイトル mオプションでメッセージ imageオプション(フルパス指定)でアイコンの画像を指定することが出来る growlnotify -t 'テスト' -m 'test'growlnotify -t 'テスト' -m 'test' --image 画像パス
磯野ー テストやろうぜー >|ruby| puts ひゃああうまひいいい |
磯野ーテストやろうぜー
「1回きりのcron」とも言うべきatコマンドが macだと使えないようだった。atコマンドはこういう風に使えばいいんだけども、 $ echo "/usr/bin/ruby /Users/shige/projects/hatena.rb" | at "00:17 18.05.13"この書式を実行してもatコマンドが作動しない…unix…
てすと
てすと