Skip to content

Instantly share code, notes, and snippets.

View cool21540125's full-sized avatar
💭
Becoming power overwhelming

Tony Chou cool21540125

💭
Becoming power overwhelming
  • Taiwan
View GitHub Profile

Part1. git 的基礎使用

git 是一個強大的版本控管工具, 可以協助你將文字檔案做版本控管, 並且可以上傳到遠端的 Git Service, 像是 Github/Gitlab/Bitbucket/...

而且可以與其他人共同管理維護同一份專案(也就是, 可以幫你控管一大堆檔案的版本異動紀錄), 並起可以在哪天把檔案改壞了的時候, 做適當的還原.

而 git 與 VSCode 有著深度的整合, 每一台電腦安裝完 git 與 VSCode 以後, 必須要做一次性的設定

熱鍵:「Ctrl ~」, 會跑出一個黑底白字的區塊, 進行下列設定

Part1. csv / json / xml 資料比一比

以 113 年職業訓練開班一覽表 - https://data.gov.tw/dataset/170983 的資料為範例, 請同學自行比較 XML / CSV / JSON 各種資料格式之間的差異

對於 XML 是個怎樣子的資料格式, 只要對他略知一二即可. 後續課程不至於會很常看到.

不過, 財務報表方面的表達, 早在 2010 年前後幾年, 已經陸續成為世界各國「財務報表」的標準, 稱之為 XBRL

你知要知道, XBRL 就是 XML. XML 就是某種「結構化的格式」(就跟 JSON 一樣).

Part1. VSCode 進行同步

先前往 Gibhub 或 Microsoft 註冊帳號

VSCode 下載安裝完成後, 右下角的頭像, 選擇「登入以同步設定」

使用上述 Github 或 Microsoft 任一帳號進行登入

登入完成以後, 你在這台電腦上頭的 VSCode 設定, 會幫你同步到雲端

Part1. 公開資料平台

帶各位同學查找政府資料開放平臺 - https://data.gov.tw/

同學自行找尋自己感興趣的議題, 並且說明了各種公開資料集的資料格式

常見的資料格式為:

@cool21540125
cool21540125 / delete_git_submodule.md
Last active August 21, 2020 16:27 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule