To set up custom domain with HTTPS on Github Pages, there are 6 steps :
- Buy domain
- Setup Github Pages CNAME
- Add domain to Cloudflare
- Setup Cloudflare A record
- Change DNS Nameservers
- Setup HTTPS in Cloudflare
To set up custom domain with HTTPS on Github Pages, there are 6 steps :
Open Developer tools (F12) => Settings (F1) => Enable JavaScript source maps
常看到HTML裡有data-
這個屬性, 其實這是HTML5才有的,透過讓每個元素有自己的dataset,讓本來需要用ajax獲得或是hide起來的資料,可直接使用data-把值藏好!
存人物的多項資訊到一個DOM元素中
1 | <ul id="people"> |
Library argparse
in python could help user handle arguments passed through command prompt, below I record the most important functions :
今天剛好遇到要計算兩個日期區間有沒有重疊,發現這個問題其實可以想成,A和B一生中有沒有可能相遇?
這麼一想就簡單多了,就是兩人必須在對方死亡前出生!
1 | var isOverlap = a.start < b.end && b.start < a.end |
語法:Where + Command
範例:where node
輸出:C:\Program Files\nodejs\node.exe
會特別找這個是因為我常更新某個command後,卻發現版本依然停在舊的,這時候用where就知道大概是哪個環境變數和舊版程式在搞鬼囉!