Blogs
Python:matplotlib …
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 上次安裝Python之後,用matplotlib秀出多個子圖時出現警告。 主要是"新版matplotlib"中的plt.subplots有更改,現在直接建立一次就好。 先看程式碼 fig, ax = plt.subplots(2,2) ax[0,0].plot(np.arange(10)) …
Linux 常用指令
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. ls:列出檔案資訊 → 類似dos之dir l:列出詳細的檔案資訊 a:列出全部檔案包括隱藏檔 R:遞回列出檔案及子目錄其下的所有子目錄和檔案 x:以多欄方式列出,字母順序由左而右 i:以i -node來列出,會列出每個檔案在磁碟中的編號 t:依檔案的修改時間排序 (由新而舊) u:依檔案上次的存取時間排序 (需與t配合) s:檔案的大小以區塊為單位 (每個區塊block …
Notion Page 轉換 Markdown …
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 前言 上次文章分享怎麼使用Github來完成自動部署功能,接下來就是研究如何取得Notion文章並存成Markdown。這次還是一樣參考這位大神的Repo來實現,雖然我有做一些修改,但是絕大部分都是原作者的內容,所以這次主要分享我參考哪些部分。 個人修改過程 首先,我在本機自行建立環境,並把他的Python程式碼做點修改 改成可以輸入由本機端輸入參數進行測試,而不是讀 …
Hugo: Bat-Files for Hugo …
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 前言 由於 Hugo 的操作需要輸入 CMD 指令,索性直接將相關的指令寫成 BAT 檔,並加了一些符合自己需要的小功能 新增文章並開啟 VSCode @echo off REM 提示輸入文章標題 @SET /P title=輸入文章標題: echo 文章標題為 %title%,即將建立檔案... REM 取得日期 for /F "tokens=1-3 …
Install Hugo in Windows
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 前言 最近看自己之前用 Bootstrap 做的 Github Page 實在難看,決定來研究大家常常使用的靜態網站產生器 (Static Site Generator),到底有多好用。講到網站生成器,最常被提到的大概就是 JeckyII、Hexo、Hugo 等工具,也有人做了評比,來比較不同產生器的優劣。目前看下來最方便功能又齊全的應該是 Hugo,基本上架設部落格所需要 …
Python FFT Toollit
此內容由 Notion 編輯並經由 Notion API 自動轉成 Hugo 頁面 The content write by Notion, and use Notion API convert to Hugo page. 前言 整理目前在 Python 所用過的 FFT Library。所有安裝都是在 Windows 10 下完成,其他平台沒試過,會遇到甚麼坑我也不知道XD NumPy 一種 Python 的矩陣運算工具,主要用 C-code 寫成,因此計算速度很快。 安裝 pip install numpy 範例 import numpy as np A = …