Reindeer Note Keep learning, growing & enjoying!

Cookie, Session storage, Local storage

Session cookies

Ruby, Kata, leetcode

Kata

Target: Reverse the bits in an integer

GitHub page with custom domain + Cloudflare

想學的東西很多,聽過看過很容易忘記,於是開始寫 blog 梳理思緒,留下文字紀錄也比較不會忘記,此篇記錄如何在 GitHub page 套用 custom domain 並使用 Cloudflare 管理 domain。

What is Migration?

Migration (資料庫遷移)是 Active Record 的其中一項特性,讓你可以不使用 SQL 語法修改資料庫, Active Record 會紀錄哪些 migration 已經執行過、哪些還沒,並且會更新 db/schema.rb (資料庫綱要)。

Ruby - Block, Proc, Lambda

程式碼區塊(Block)在Ruby大量被使用,寫法有do...end, 花括號{...}兩種