Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

無限ループビルダーズ @ Zohyo Meetup #3

2,106 views

Published on

http://zohyo.connpass.com/event/24420/

Published in: Technology
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

無限ループビルダーズ @ Zohyo Meetup #3

  1. 1. 無限ループビルダーズ @ara_ta3
  2. 2. わたし • 新卒2年目が終わりそう・・・ • あどてく系のえんじにゃー • Scala, JavaScript, PHP, その他色々 • Twitter : @ara_ta3 • Darkっていうだいたい新卒コミュニティやってます • 最近ドラクエビルダーズ #DQB にはまってます。 • イケニエと雪のセツナ買いました。
  3. 3. わたし ドラクエビルダーズ #DQB https://twitter.com/ara_ta3/status/698835396780666880
  4. 4. _人人人人人_ > hadoop <  ̄Y^Y^Y^Y ̄
  5. 5. 伝説のビルダーはhadoopも作れる。 だから無限ループも作れる
  6. 6. わたし - Dark? • だいたい新卒の闇(?)コミュニティ • だいたいの定義はない • botで色んな機能作って遊んでます • ChatOps的なこと?
  7. 7. わたし - Dark? • 色々あって、Slack上で無限ループできたので • 今日はその方法と有用性について紹介します!!()
  8. 8. 背景 • Darkのbotについて • 2体います • dark - hubot製 • 私管理 • ray - ruboty製 • ある参加メンバー管理
  9. 9. 背景 • Darkのbotについて • 2体います • dark - hubot製 • 私管理 • ray - ruboty製 <- このbotの話 • ある参加メンバー管理
  10. 10. ray(ruboty)の紹介 • 彼すごいんです • 雑談できる!(ruboty-talk) • rubyコマンドが使える(ruboty-ruby)
  11. 11. ray(ruboty)の紹介 • ruboty-talk plugin
  12. 12. _人人人人人_ > なんかうざい <  ̄Y^Y^Y^Y ̄ ※個人の感覚によります
  13. 13. • ruboty-ruby plugin ray(ruboty)の紹介
  14. 14. • ruboty-ruby plugin ray(ruboty)の紹介 _人人人人人人人人人人人人_ > 名前の割に闇感すごい <  ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄
  15. 15. ray(ruboty)の紹介 • 突然ですが、rubyでシェルを実行する場合 • `でくくるとシェルコマンドになるんですね。
  16. 16. • ruboty-ruby plugin ray(ruboty)の紹介
  17. 17. ( ゜д ゜)
  18. 18. rubotyの特性 • hubotと違って、ユーザ扱い • botメッセージによっても呼び出し可能 • 例 • hubot echo ray echo hoge • ray echo ray echo hoge
  19. 19. rubotyの特性 • hubotと違って、ユーザ扱い • botメッセージによっても呼び出し可能 • 例 • hubot echo ray echo hoge • ray echo ray echo hoge _人人人人人人人人人人人人人人_ > 無限ループ出来そう!!! <  ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄
  20. 20. 実践 - 無限ループ • 再帰的に処理が出来そうです。 • ただ、再帰処理をするためには処理に名前をつ ける必要がありますよね • そこで、ruboty alias というのがあるらし い。
  21. 21. 実践 - 無限ループ
  22. 22. • つまらない!!!!! • もっと壮大な何か愉快な感じに無限ループして 欲しいんだ! • aliasでは一つのことしか出来ない • 単純なループ処理しか出来ない
  23. 23. そこでincoming webhookですよ
  24. 24. 雑な図
  25. 25. script #!/bin/sh sleep 1 test -f ./loop.sh ¦¦ curl -o loop.sh -s https://gist.githubusercontent.com/ara-ta3/fa468a312d0098c01ada/raw/ loop.sh curl -s https://gist.githubusercontent.com/ara-ta3/fa468a312d0098c01ada/raw/something.sh¦sh > /dev/null curl -X POST --data-urlencode 'payload={"channel": "#bot_heaven", "text": "ray ruby `sh ./loop.sh`"}' $ {SLACK_WEBHOOK} > /dev/null https://gist.github.com/ara-ta3/fa468a312d0098c01ada loop.sh something.sh #!/bin/sh curl -X POST --data-urlencode 'payload={"channel": "#bot_heaven", "text": "ray echo dark poem"}' $ {SLACK_WEBHOOK} > /dev/null
  26. 26. DEMO • dark poemの無限ループ • dark poem • -> オサレなポエムを流してくれるbotの機能
  27. 27. まとめ • Slackでrubotyを使うと無限ループが出来る • (正しくはruboty ruby plugin) • 何の意味があった? • 意味はありません。夢があります。 • aliasよりincoming webhookを利用したほうが汎用的にいろんなことが出来る! • 無限猫画像・無限ポエム • いかがわしい画像とか出た時のkskに使えそう • 無課金だと過去のメッセージガンガン減っていくから注意
  28. 28. ご静聴ありがとうございました

×