Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Easy hacking, and enjoy life.

Katsumata Ryo
November 13, 2019

Easy hacking, and enjoy life.

雑に書いて「楽」をしよう

業務中に業務外で小さいコードを書くお話 ( 日々のこと)

Katsumata Ryo

November 13, 2019
Tweet

More Decks by Katsumata Ryo

Other Decks in Technology

Transcript

  1. .& > katsumata = SelfIntroduction.new(“katsumata”) > katsumata.work.job => [“backend”, “team

    development”] > katsumata.work.corp => “STORES.jp” > > katsumata.hobby => [“Guitar”, “Camera”] > katsumata.families => [“࠺”, “͓ࢠ”]
  2. ى िใͷߏ੒ # िใ ## վળ ### ઌि΍ͬͨ͜ͱ - task

    ### ࠓि΍ͬͨ͜ͱ -task ## Project 1 ### ઌि΍ͬͨ͜ͱ - task ### ࠓि΍ͬͨ͜ͱ -task ### KPT - keep / problem / try ## Project 2 <ಉ্>
  3. ঝ ଟ෼͜Μͳײ͡Ͱߦ͚ΔΜ͡Όͳ͍ͩΖ͏͔ ɾasana ͔Β΍ͬͨλεΫΛൈ͖ग़͢ ↓ ɾिใ༻ʹ੔ܗ͢Δ ↓ ɾQiita Teamʹ౤ߘ͢Δ ↓

    ɾ࣮ߦͯ͠slackʹ௨஌͢Δ ·ͨɺ͍ͭ·Ͱ࢖͏͔Θ͔Βͳ͍ͷͰ ɾࣗ෼༻ͰखݩͰಈ͚͹͍͍ ɾͱΓ͋͑ͣಈ͚͹͍͍ ͱ͍͏ํ਑
  4. స gem ʹ͠Αʔ ٱʑʹ΍͚ͬͨͲ؆୯ͩͬͨ ɾ`bundle gem asaner -t` ɾasaner.gemspec Λฤू

    ɾgem ґଘΛॻ͍ͨΓ ɾ`rake build` ɾ`bundle exec rake release` ɾ2FAؔ࿈ͰϋϚͬͨ https://rubygems.org/gems/asaner
  5. స pryͰ࢖ͬͨ $ gem install asaner $ pry [2] pry(main)>

    require 'asaner' => true [3] pry(main)> client = Asaner::Client.new(ENV["ASANA_ACCESS_TOKEN"]) [4] pry(main)> response = client.me [5] pry(main)> response[:status] => 200 [6] pry(main)> response[:body] => {"data"=> {"gid"=>”***********", "email"=>"[email protected]", "name"=>"Ryo Katsumata", "photo"=> {"image_21x21"=>"https://s3.amazonaws.com/profile_photos/877225423817499.y 96p7jNRqn6joM7AP92X_21x21.png", "resource_type"=>"user", "workspaces"=> [{“gid”=>”00000000000000“, ”name“=>”My Company“, ”resource_type“=>”workspace“ . . .ུ