Parker

@nMuhqqCnRo-W7AZ9CGKD1g

Joined on Apr 27, 2020

  • 未來抽卡建議 雷溫 1+ 財力足夠可考慮 3+ (長線有用) 伊芙 1+ 升等建議 技能等級先求 370,三階 70 等 有需求時可拉到 80 等 資源充足時 輸出/公會戰坦 可拉到 90 等 練度建議
     Like  Bookmark
  • 未來抽卡可考慮角色 德雷雅 1+ 渡鴉 0+ 升等建議 技能等級先求 370,三階 70 等 有需求時可拉到 80 等 資源充足時 輸出/公會戰坦 可拉到 90 等 練度建議
     Like 1 Bookmark
  • 參考資料來源:https://gorails.com/episodes/ruby-http-server-from-scratch 我們想建立像 Puma、Thin 或 Unicorn 這樣 Web Server 這些 Web Server 會監聽 TCP socket 端的訊息 我們可以用 HTTP protocol 解析訊息,然後回應 HTTP response NetCat Tool $ nc google.com 80 $ hello # invalid request 400 Bad Request # response
     Like  Bookmark
  • https://api.rubyonrails.org/classes/ActiveSupport/Callbacks.html class AAA include ::ActiveSupport::Callbacks define_callbacks :perform def perform puts '--- perform start ---' # run_callbacks :perform run_callbacks :perform do
     Like  Bookmark
  • https://ruby-doc.org/stdlib-3.1.2/libdoc/set/rdoc/Set.html array 與 hash 的混血兒 Set[1] Set.new [1] [1].to_set Set[1].to_a Set.new([1]) { |n| n * 10 }
     Like  Bookmark
  • I found prepend method while writing EventService, which is not mentioned as often as include or extend, so I sorted out the differences between these three. references: Ruby modules: Include vs Prepend vs Extend Include, Extend, And Prepend In Ruby Eigenclasses The Ruby Object Model by Dave Thomas Here we have a module Instinctive which has a instance method called eat, and a class named Human for the later examples.
     Like 1 Bookmark
  • Block 的神奇魔法 - & (和號) 平常的 block 用法 def say_hello puts "hello 你好" yield end say_hello { puts "hi 大家好" }
     Like  Bookmark