Your SlideShare is downloading. ×
0
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
earthquake.gem
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

earthquake.gem

8,627

Published on

the demo movie is here http://www.youtube.com/watch?v=S2KtBGrIe5c

the demo movie is here http://www.youtube.com/watch?v=S2KtBGrIe5c

Published in: Technology, Design
2 Comments
13 Likes
Statistics
Notes
  • Hey, I love the gem. I'm having an error, though. 'can't activate json-1.8.0, already activated json-1-8-1' What did I do wrong?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • 神ツール
    awesome toooooooool!!!!!!! for twitter
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
8,627
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
33
Comments
2
Likes
13
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
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. earthquake.gem @jugyo
    • 2. @jugyo I like• Ruby• Twitter
    • 3. Introduction
    • 4. Introduction
    • 5. I talk about theearthquake.gem
    • 6. What ?
    • 7. What is theearthquake.gem?
    • 8. Twitter terminal client with Streaming API support cool!
    • 9. written in Ruby ruby!
    • 10. Demo
    • 11. Why ?
    • 12. Why did I create this?
    • 13. hmm
    • 14. 3.11 !
    • 15. earthquake!!
    • 16. I thought about death
    • 17. I thought about death
    • 18. What should I do?
    • 19. Aha!
    • 20. I need a new Twitter Client!
    • 21. I need real-time information
    • 22. Why did I name earthquake? ?
    • 23. I dont know !
    • 24. just a inspiration !
    • 25. and easy to remember
    • 26. Feature
    • 27. Using Streaming API
    • 28. Its like `tail -f` for twitter.com
    • 29. Desktop Notification
    • 30. growl gntpnotify.gem notify-send libnotify
    • 31. Extensible with Ruby
    • 32. Usage
    • 33. install ruby 1.9.2 using rvm
    • 34. rvm readline package is required
    • 35. $ rvm package install openssl$ rvm package install readline$ rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr --with-readline-dir=$HOME/.rvm/usr rvm install
    • 36. gem install earthquake
    • 37. $ earthquake
    • 38. Detail
    • 39. queue
    • 40. queueoutput
    • 41. queue outputGrowl
    • 42. input queueoutput
    • 43. input queueoutput
    • 44. input queueoutput output_filter
    • 45. input_filter input queue output output_filter
    • 46. earthquake directory is "~/.earthquake"
    • 47. define command
    • 48. Earthquake.init do command :hello do twitter.udpate Hello World! endend
    • 49. define output_filter
    • 50. Earthquake.init do output_filter do |item| if item["text"] && item["_stream"] item["text"] =~ /ruby/i ? true : false else true end endend
    • 51. define input_filter
    • 52. Earthquake.init do ... input_filter do |text| if text =~ /^:(update|reply|retweet|message)/ && text.size > 140 puts "shortening urls...".c(:info) text.gsub(URI.regexp([http,https])) do |url| query = "domain=#{config[:bitly][:domain]}&longUrl=#{URI.encode(url)}&login=#{config[:bitly][:username]}&apiKey=#{config[:bitly][:api_key]}" result = JSON.parse(Net::HTTP.get("api.bit.ly", "/v3/shorten?#{query}")) if result[status_code] == 200 result[data][url] else url end end else text end url shorter with bit.ly endend
    • 53. Plugin
    • 54. You can install plugins from gist.github.com
    • 55. :plugin_install https://gist.github.com/899506
    • 56. Thats it!
    • 57. Thats it!
    • 58. Thanks!
    • 59. Any question? ?

    ×