Chirpy Jekyll Theme A minimal, responsive, and powerful Jekyll theme for presenting professional writing. Live Demo → Features Dark/Light Theme Mode Localized UI language Pinned Posts ...
Getting Started
Prerequisites Follow the instructions in the Jekyll Docs to complete the installation of the basic environment. Git also needs to be installed. Installation Creating a New Site There are two wa...
Writing a New Post
This tutorial will guide you how to write a post in the Chirpy template, and it’s worth reading even if you’ve used Jekyll before, as many features require specific variables to be set. Naming and...
Text and Typography
This post is to show Markdown syntax rendering on Chirpy, you can also use it as an example of writing. Now, let’s start looking at text and typography. Titles H1 - heading H2 - heading H3 - h...
Enable Google Page Views
The content of this post applies only to Universal Analytics property (UA), not Google Analytics 4 (GA 4). In addition, since UA is about to be deprecated on Jul 1, 2023, the Page Views feature ...
淨空法師:這個確實能治眾生一切病
弘一大師:「阿彌陀佛,無上醫王,捨此不求,是謂癡狂。一句彌陀,阿伽陀藥;捨此不服,是謂大錯。」 阿彌陀佛是大醫王 大乘經教裡頭,釋迦牟尼佛無數次地贊歎阿彌陀佛是大醫王。 一切眾生八萬四千的病苦,無量無邊的病苦從哪裡來的?從煩惱生的。 煩惱是什麼?簡單地說,就是念頭,就是妄想、雜念。佛教給我們,用這一句佛號,把這些東西給念掉,心地清淨...
[C# 筆記] as 和 is 的差別?
在C#中,as 和 is 是用於處理類型轉換和類型檢查的兩個不同的運算子。 as 用於嘗試進行類型轉換 is 用於檢查物件是否是指定類型的實體,而不進行實際的類型轉換 as 運算子: as 運算子用於將物件轉換為指定類型,如果轉換失敗則傳回 null,而不會引發異常。 通常用於在不確定物件類型時進行類型轉換,如果轉換成功,得到一個非空值,否則得到 null。 ...
[C# 筆記] i++ 和 ++i 有什麼差別?
i++ 和 ++i 都是用來遞增變數的操作符,它們的差異在於它們傳回的值和執行順序。 i++(後增量): i++ 表示使用變數的目前值,然後再將變數遞增。 傳回的值是變數的目前值,然後變數會遞增。 後增量表示先使用目前值再遞增。 int i = 5; int result = i++; // result的值是5,i的值變成6 ++i(前增量): ++i 表...
[C# 筆記] &和 && 的區別
& 是位元與運算符,同時也可用於邏輯與操作,但不會短路。 && 是邏輯與運算符,具有短路的特性。 & 運算子: & 是位元與運算符,用於對整數類型的對應位元執行位元與操作。 在邏輯上,& 也可用於執行邏輯與操作,但與 && 不同,& 會對兩側的操作數都進行求值,而不會短路。 例如,if (conditi...
[C# 筆記] Math.Round(11.5) 等於多少? Math.Round(-11.5) 等於多少
Math.Round(11.5) 等於多少? Math.Round(-11.5) 等於多少 在C#中,Math.Round 方法用於將浮點數捨入到最接近的整數。對於包含 .5 的情況,它遵循一種特定的規則,稱為「銀行家捨入」規則。 Math.Round(11.5) = 12 Math.Round(-11.5) = -12 C# .NET面试系列一:基础语法