Your SlideShare is downloading. ×
おれが考えた見やすい通知
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

おれが考えた見やすい通知

1,384

Published on

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,384
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. おれが考えた見やすい通知 みかみよしゆき@サイキョウライン yoshuki@saikyoline.jp http://saikyoline.jp/ 2011年7月16日 於闇RubyKaigi
  • 2. autotest-tmux
  • 3. Autotest::Screen (ZenTest)
  • 4. autotest_screen
  • 5. 問題
  • 6. 問題•小さい•見にくい•分かりづらい
  • 7. なんとかしなきゃ!
  • 8. 対策
  • 9. 大きく
  • 10. 見やすく
  • 11. 分かりやすく
  • 12. 対策•大きく•見やすく•分かりやすく
  • 13. SW Notifier http://saikyoline.jp/air/swn/
  • 14. デモhttp://saikyoline.jp/air/swn/
  • 15. 必要なモノhttp://saikyoline.jp/air/swn/
  • 16. 活用例http://saikyoline.jp/air/swn/
  • 17. ひとつめhttp://saikyoline.jp/air/swn/
  • 18. autotest-swhttp://saikyoline.jp/air/swn/
  • 19. $HOME/.autotestrequire socketrequire autotest/tmuxAutotest.add_hook :ran_command do |at, *args| next false unless Autotest::Tmux.execute? output = at.results.join result = Autotest::Tmux.parse_output(output, at.class.name) TCPSocket.open(localhost, 12345) do |s| prefix = case result[:color] when :red; R: when :yellow; Y: when :green; G: else end s.write "#{prefix}#{output}" end next falseend http://saikyoline.jp/air/swn/
  • 20. ふたつめhttp://saikyoline.jp/air/swn/
  • 21. swhttp://saikyoline.jp/air/swn/
  • 22. sw.rbrequire socketmodule Kernel def sw(*args) args.each do |arg| TCPSocket.open(localhost, 12345) {|s| s.write arg } end end def sw_r(*args) sw *(args.map {|a| "R:#{a}" }) end def sw_y(*args) sw *(args.map {|a| "Y:#{a}" }) end def sw_g(*args) sw *(args.map {|a| "G:#{a}" }) endend http://saikyoline.jp/air/swn/
  • 23. HEY! Its useful! HAHAHA! @yoshukihttp://saikyoline.jp/air/swn/

×