Technical notes written freely. RSS Feed
Recent Posts
[leetcode] 2. Add Two Numbers
Published: at 06:58 AM (3 min read)2. Add Two Numbers
[JavaScript] 了解 Promise 的你知道這段程式碼的答案嗎?
Published: at 03:03 AM (2 min read)這是一段幫助你更了解 Promise 與 CallStack/Microtask Queue 的程式碼,希望你在得到答案的同時,也更了解 Promise 是如何運作的。
[HTML] Referrer-Policy 是什麼?
Published: at 09:01 AM (4 min read)你知道當你瀏覽網頁時,瀏覽器會將你的前一個網址傳送給下一個網站嗎?你聽過 referer 嗎?
[sidekiq] How to list Sidekiq jobs in the Rails console
Published: at 09:03 AM (1 min read)How to list all Sidekiq jobs in the Rails console without Sidekiq Web UI
[rails] 在 Rails console 顯示 debug 訊息(如 SQL)
Published: at 03:38 AM (2 min read)有時候在 Rails console 想要看到 debug 訊息,例如這段程式碼實際執行的 SQL...
[rails] 在 Rails 更新了 asset stylesheet 或 javascript 但卻沒有更新
Published: at 03:08 AM (1 min read)前陣子遇到在 Rails 6 的專案中更新了既有 asset stylesheet 或 javascript 的內容,但卻沒有更新...
[leetcode] 1. Two Sum
Published: at 02:39 AM (2 min read)1. Two Sum
[rails] Error: incompatible function pointer types passing 'VALUE (VALUE *)'
Published: at 02:12 AM (1 min read)How to fix the error: incompatible function pointer types passing 'VALUE (VALUE *)'
[mac] 外接耳機或喇叭突然沒聲音
Published: at 01:14 AM (1 min read)如何解決 mac 外接耳機或喇叭突然沒聲音
[leetcode] 992. Subarrays with K Different Integers
Published: at 12:26 AM (3 min read)992. Subarrays with K Different Integers
[css] 如何使用 CSS 判斷 Dark/Light 模式
Published: at 10:45 AM (4 min read)透過 CSS 的 `prefers-color-scheme` 來判斷使用者的 Dark/Light 模式