forked from zivong/jekyll-theme-hydure
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
10,047 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
layout: post | ||
title: What's Jekyll? | ||
category: [Example] | ||
tags: [jekyll] | ||
--- | ||
|
||
[Jekyll](https://jekyllrb.com) is a static site generator, an open-source tool for creating simple yet powerful websites of all shapes and sizes. | ||
|
||
--- | ||
## Gem installs | ||
``` | ||
sudo apt-get install ruby-full build-essential zlib1g-dev | ||
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc | ||
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc | ||
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc | ||
source ~/.bashrc | ||
gem install jekyll bundler | ||
gem install "jekyll-theme-hydure" | ||
bundle add webrick | ||
``` | ||
|
||
--- | ||
## To create a Github Page with a Jekylle theme | ||
Assume you have a github account: `https://github.com/yourname` | ||
### Fork Theme | ||
1. Go to [Jekyll-Theme-Hydure](https://github.com/zivong/jekyll-theme-hydure) click [Fork] <br /> | ||
2. Click [Settings], **Repository name** enter YourBlogName (Ex. `AI-course`), click [Rename]<br /> | ||
3. Delete 2 old branches, keep `master` branch <br /> | ||
4. Create new Branch `gh-pages` <br /> | ||
5. Click [Settngs], Left Menu `Braches`, **Default branch** set to `gh-pages` | ||
### Add Theme | ||
6. Edit Gemfile to add: <br /> | ||
``` | ||
gem "jekyll-theme-hydure" | ||
``` | ||
7. Edit _config.yml to add: <br /> | ||
To submit to github, | ||
``` | ||
plugin: | ||
- jekyll-remote-theme | ||
remote_theme: zivong/jekyll-theme-hydure | ||
``` | ||
For running on localhost (PC), use the following: | ||
``` | ||
plugin: | ||
# - jekyll-remote-theme | ||
theme: jekyll-theme-hydure | ||
``` | ||
|
||
### Change Cover.jpg | ||
8. Upload a cover.jpg (1920x2880) to **_layouts** <br /> | ||
9. Modify **_layouts/default.hmtl** to change path of cover.jpg <br /> | ||
``` | ||
assign cover = site.cover | default: "cover.jpg" | ||
``` | ||
### Change Title & Tagline | ||
10. Modify **_config.yml** <br /> | ||
``` | ||
- title: AI course | ||
- tagline: Deep Learning Course | ||
``` | ||
11. Modify **_data/navigation.yml** to change url<br /> | ||
``` | ||
- tile Download | ||
url: https://github.com/rkuo2000/AI-course/archive/refs/heads/master.zip | ||
- title: Github | ||
url: https://github.com/rkuo2000/AI-course | ||
``` | ||
12. Modify **_data/social.yml** to change url<br /> | ||
``` | ||
- title: Email | ||
url: mailto:[email protected] | ||
icon: fas fa-envelope | ||
- title: FaceBook | ||
url: https://facebook.com/yourname | ||
icon: fab fa-facebook | ||
- title: Twitter | ||
url: https://twitter.com/yourname | ||
icon: fab fa-twitter | ||
- title: GitHub | ||
url: https://github.com/yourname | ||
icon: fab fa-github | ||
``` | ||
### Edit Posts | ||
13. Modify **_posts/*.md**, upload or remove .md) <br /> | ||
(posts display latest dated .md on the top) <br /> | ||
``` | ||
2021-09-23-DeepLearning-intro.md | ||
2021-09-23-AI-intro.md | ||
2021-03-01-whats-jekyll.md | ||
``` | ||
14. Modify **_layouts/default.html** for hiding side-header with a checkbox <br /> | ||
see [_layouts/default.html](https://github.com/rkuo2000/AI-course/blob/gh-pages/_layouts/default.html) for detail | ||
|
||
### Run on localhost | ||
``` | ||
cd ~/Desktop/Robotics/ | ||
rm Gemfile.lock` # for the first-time | ||
jekyll serve | ||
``` | ||
|
||
* Open Browser at* **localhost:4000**<br> | ||
|
||
### Open Github Page | ||
* Click [https://yourname.github.io/yourpagename](https://rkuo2000.github.io/AI-course) | ||
|
||
<br> | ||
<br> | ||
|
||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
--- | ||
layout: post | ||
title: PC softwares | ||
author: [Richard Kuo] | ||
category: [Lecture] | ||
tags: [jekyll, ai] | ||
--- | ||
|
||
Colab, Notepad++, Git-for-Windows, Python3-for-Windows, GPU libraries (CUDA & CuDNN), etc. | ||
|
||
--- | ||
## 雲端平台 | ||
|
||
### [Google Colab 新手的入門教學](https://tw.alphacamp.co/blog/google-colab) | ||
|
||
### [Kaggle 使用介紹](https://rkuo2000.github.io/AI-course/lecture/2023/12/01/Kaggle-Intro.html) | ||
|
||
--- | ||
## 程式語言 | ||
|
||
### [Python Programming](https://www.programiz.com/python-programming) | ||
|
||
### [Python Tutorials](https://www.w3schools.com/python/python_intro.asp) | ||
|
||
--- | ||
## 程式編輯器 | ||
|
||
### For Windows | ||
* Download [Notepad++ v8.6.9](https://notepad-plus-plus.org/downloads/) | ||
|
||
### For Ubuntu / MacOS | ||
* **nano** (for Ubuntu / MacOS) | ||
* **vim** (for Ubuntu / MacOS) | ||
|
||
--- | ||
## Linux作業系統模擬器 | ||
|
||
### [Git-for-Windows](https://gitforwindows.org/) | ||
|
||
--- | ||
### [Linux Command 命令列指令與基本操作入門教學](https://blog.techbridge.cc/2017/12/23/linux-commnd-line-tutorial/) | ||
* `ls -l` (列出目錄檔案)<br> | ||
* `cd ~` (換目錄)<br> | ||
* `mkdir new` (產生新檔案夾)<br> | ||
* `rm file_name` (移除檔案)<br> | ||
* `rm –rf directory_name` (移除檔案夾)<br> | ||
* `df .` (顯示SSD/硬碟的用量)<br> | ||
* `df -a` (顯示所有儲存裝置的用量)<br> | ||
* `du –sh directory` (查看某檔案夾之儲存用量)<br> | ||
* `free` (檢查動態記憶體用量)<br> | ||
* `ps –a` (列出正在執行的程序)<br> | ||
* `kill -9 567` (移除程序 id=567)<br> | ||
* `cat /etc/os-release` (列出顯示檔案內容,此檔案是作業系統版本)<br> | ||
* `vi file_name` (編輯檔案)<br> | ||
* `nano file_name` (編輯檔案)<br> | ||
* `clear` (清除螢幕顯示)<br> | ||
* `history` (列出操作記錄)<br> | ||
|
||
### [GNU / Linux 各種壓縮與解壓縮指令](https://note.drx.tw/2008/04/command.html) | ||
|
||
--- | ||
### GPU 工具箱與函式庫 | ||
* [CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit) | ||
- [CUDA installation](https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html) | ||
* [CuDNN](https://developer.nvidia.com/cudnn) | ||
- [cuDNN installation](https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html) | ||
|
||
--- | ||
## Python 解譯器與軟體包 | ||
|
||
### [Python3 for Windows](https://www.python.org/downloads/windows/) ~ Python 3.11.9 (windows installer 64-bit) | ||
|
||
### [Windows 如何安裝Python3.11](https://ailog.tw/lifelog/2023/01/30/win-python311/#google_vignette) | ||
|
||
--- | ||
### Ubuntu OS | ||
`$ python3 -V`<br> | ||
|
||
**Ubuntu 20.04 LTS**<br> | ||
Python 3.8.10<br> | ||
|
||
**Ubuntu 22.04 LTS**<br> | ||
Python 3.10.12<br> | ||
|
||
**Ubuntu 24.04 LTS**<br> | ||
Python 3.12.3 | ||
|
||
--- | ||
### Install Python packages | ||
啟動 GitBash (啟動 Linux終端機)<br> | ||
|
||
`python3 -V`<br> | ||
`python3 –m pip install --upgrade pip`<br> | ||
`pip -V`<br> | ||
`pip install jupyter`<br> | ||
`pip install pandas`<br> | ||
`pip install matplotlib pillow imutils`<br> | ||
`pip install opencv-python`<br> | ||
`pip install scikit-learn`<br> | ||
`git clone https://github.com/rkuo2000/cv2`<br> | ||
|
||
|
||
--- | ||
### PyTorch | ||
#### [Get-Started](https://pytorch.org/get-started/locally/)<br> | ||
#### [PyTorch Tutorials](https://pytorch.org/tutorials/) | ||
`pip install torch torchvision torchaudio`<br> | ||
|
||
--- | ||
### Tensorflow | ||
#### [Tensorflow Turorials](https://www.tensorflow.org/tutorials) | ||
`pip install tensorflow`<br> | ||
|
||
--- | ||
## LLM 安裝 | ||
|
||
### Ollama | ||
|
||
#### [download Ollama on Windows](https://ollama.com/download/windows) | ||
**Blog** [How to run Ollama on Windows](https://medium.com/@researchgraph/how-to-run-ollama-on-windows-8a1622525ada)<br> | ||
|
||
#### [download Ollama on Mac](https://ollama.com/download/mac) | ||
|
||
#### [download Ollama on Linux](https://ollama.com/download/linux) | ||
`curl -fsSL https://ollama.com/install.sh | sh`<br> | ||
|
||
``` | ||
ollama -h | ||
ollama -v | ||
ollama pull tinyllama | ||
ollama list | ||
ollama run tinyllama | ||
``` | ||
|
||
**[ollama library](https://ollama.com/library)**<br> | ||
|
||
--- | ||
### [LM Studio](https://lmstudio.ai/) | ||
|
||
<br> | ||
<br> | ||
|
||
*This site was last updated {{ site.time | date: "%B %d, %Y" }}.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
--- | ||
layout: post | ||
title: Kaggle Introduction | ||
author: [Richard Kuo] | ||
category: [Lecture] | ||
tags: [jekyll, ai] | ||
--- | ||
|
||
Kaggle.com 人工智慧競賽的雲端平台, 提供免費使用 CPU / GPU / TPU | ||
|
||
--- | ||
## Kaggle.com | ||
人工智慧競賽的雲端平台, 提供免費的CPU / GPU / TPU<br> | ||
* CPU: Xeon 2.20GHz x4 [CPU Kernel Specs](https://www.kaggle.com/code/rkuo2000/cpu-kernel-specs) | ||
|
||
* GPU P100: Nvidia Tesla P100-PCIE-16GB [GPU Checkup](https://www.kaggle.com/rkuo2000/gpu-checkup) | ||
![](https://tpucdn.com/gpu-specs/images/c/2888-front.small.jpg) | ||
|
||
* GPU T4 x2: Nvidia Tesla T4 x2 [GPU Checkup](https://www.kaggle.com/rkuo2000/gpu-checkup) | ||
![](https://tpucdn.com/gpu-specs/images/c/3316-front.small.jpg) | ||
|
||
* TPU: Google TPU VM v3-8 (8 cores) | ||
![](https://storage.googleapis.com/kaggle-media/tpu/tpu_rule_of_thumb.png) | ||
|
||
--- | ||
### Sign-In | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle.png?raw=true) | ||
* Register> Register with Google | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Register.png?raw=true) | ||
* Sign-In> Sign In with Google | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Sign_In.png?raw=true) | ||
* kaggle.com/yourname | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_home.png?raw=true) | ||
|
||
--- | ||
### Code (程式碼) | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Code.png?raw=true) | ||
|
||
`+ New Notebook` | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_+New_Notebook.png?raw=true) | ||
* rename notebook | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_rename_notebook.png?raw=true) | ||
* delete cell | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_delete_cell.png?raw=true) | ||
* Settings (**Internet on**) | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Settings.png?raw=true) | ||
* key-in command `!lscpu` | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_keyin_command.png?raw=true) | ||
* session operations | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_session_operations.png?raw=true) | ||
* start session | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_session_starting.png?raw=true) | ||
* Run> Run current Cell | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Run_current_cell.png?raw=true) | ||
* Restart & Clear Cell Outputs | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Restart_Clear_Cell_Outputs.png?raw=true) | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Restart_clear_cell_outputs.png?raw=true) | ||
* Edit & Run | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_edit_and_run.png?raw=true) | ||
* `+ Code` | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_add_code.png?raw=true) | ||
* Accelerator | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Accelerator.png?raw=true) | ||
* Turn on GPU | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Turn_on_GPU.png?raw=true) | ||
* Run All | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_run_all.png?raw=true) | ||
* Save Version | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Save_Version.png?raw=true) | ||
* Save & Run All (Commit) | ||
`Save` | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Save_and_Run_All.png?raw=true) | ||
* Go to Viewer | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Go_to_Viewer.png?raw=true) | ||
* Share> | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Share.png?raw=true) | ||
* Share> Public | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Share_Public.png?raw=true) | ||
`Save`<br> | ||
|
||
--- | ||
### Dataset (資料集) | ||
* Datasets | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Datasets.png?raw=true) | ||
* `+ New Dataset`<br> | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_New_Dataset.png?raw=true) | ||
* keyin name of Dataset, and set to Public | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_New_Dataset_keyin_name.png?raw=true) | ||
* Drag and drop files | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_New_Dataset_drag_and_drop_files.png?raw=true) | ||
`Create`<br> | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_New_Dataset_create_success.png?raw=true) | ||
* `Go to Dataset`<br> | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Go_to_Dataset.png?raw=true) | ||
|
||
--- | ||
### Notebook (筆記本) | ||
* Search [kaggle.com/rkuo2000/code](https://kaggle.com/rkuo2000/code] | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Code_search.png?raw=true) | ||
|
||
* [Easy Net](https://www.kaggle.com/code/rkuo2000/easy-net) | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Code_Easy_Net.png?raw=true) | ||
`Copy & Edit`<br> | ||
* Run All | ||
|
||
--- | ||
### Import Notebook | ||
* File> Import Notebook | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_File_import_notebook.png?raw=true) | ||
* drag file to import | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_import_notebook.png?raw=true) | ||
|
||
--- | ||
## Neural Network (神經網路) | ||
|
||
### Easy Net | ||
1 neuron to learn Linear equation: Y= 0.1*X +0.3 | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Easy_Net.png?raw=true) | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Easy_Net_plot_prediction.png?raw=true) | ||
|
||
--- | ||
### Hidden Net | ||
10 neurons to learn parabola equestion: Y = X^2 | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Hidden_Net.png?raw=true) | ||
![](https://github.com/rkuo2000/AI-course/blob/main/images/Kaggle_Hidden_Net_plot_prediction.png?raw=true) | ||
|
||
<br> | ||
<br> | ||
|
||
*This site was last updated {{ site.time | date: "%B %d, %Y" }}.* | ||
|
Oops, something went wrong.