-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: modify Lecture0&1 Co-authored-by: MayGe <[email protected]> Co-authored-by: hewo233 <[email protected]> Co-authored-by: LRache <[email protected]>
- Loading branch information
1 parent
e504d5f
commit e46704f
Showing
157 changed files
with
2,811 additions
and
652 deletions.
There are no files selected for viewing
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
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,23 @@ | ||
[submodule "ohmytmux"] | ||
path = Tools/setup/config/.tmux | ||
url = https://github.com/gpakosz/.tmux.git | ||
|
||
[submodule "ohmyzsh"] | ||
path = Tools/setup/pkg/ohmyzsh | ||
url = https://github.com/ohmyzsh/ohmyzsh.git | ||
|
||
[submodule "zsh-autosuggestions"] | ||
path = Tools/setup/pkg/ohmyzsh/custom/plugins/zsh-autosuggestions | ||
url = https://github.com/zsh-users/zsh-autosuggestions.git | ||
|
||
[submodule "zsh-completions"] | ||
path = Tools/setup/pkg/ohmyzsh/custom/plugins/zsh-completions | ||
url = https://github.com/zsh-users/zsh-completions.git | ||
|
||
[submodule "zsh-syntax-highlighting"] | ||
path = Tools/setup/pkg/ohmyzsh/custom/plugins/zsh-syntax-highlighting | ||
url = https://github.com/zsh-users/zsh-syntax-highlighting.git | ||
|
||
[submodule "zsh-you-should-use"] | ||
path = Tools/setup/pkg/ohmyzsh/custom/plugins/zsh-you-should-use | ||
url = https://github.com/MichaelAquilina/zsh-you-should-use.git |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+213 KB
Lectures/Lecture0/Lecture0/static/img/c4481d8d1b1e4462a0e6d63fe765bbda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions
77
Lectures/Lecture0/Lecture0/static/img/c5f97743ad1746e58bf6f097eacc95ed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
77 changes: 77 additions & 0 deletions
77
Lectures/Lecture1/Lecture1/static/img/124ee66676384db4b9e947ca5109dd87.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+93.9 KB
Lectures/Lecture1/Lecture1/static/img/23d1ba461b244430b4b0f7b72038e247.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.6 KB
Lectures/Lecture1/Lecture1/static/img/37bc3522b4c74edea1b0c1271e532b71.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.7 KB
Lectures/Lecture1/Lecture1/static/img/58bda888e1a14c3696a2c6daf3227cc4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.9 KB
Lectures/Lecture1/Lecture1/static/img/59d50f5d469e4ed5bdff68d7dc2d7a1a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+414 KB
Lectures/Lecture1/Lecture1/static/img/5d3587eafeee423083845411713c7be2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+209 KB
Lectures/Lecture1/Lecture1/static/img/5da250edd5a840208b7878414245d962.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 KB
Lectures/Lecture1/Lecture1/static/img/5f17d9ef57004919b1497cd59ded05f9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+182 KB
Lectures/Lecture1/Lecture1/static/img/63334dc50fab4aa89ca800a49b16a352.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+201 KB
Lectures/Lecture1/Lecture1/static/img/63fcf7cfd6a448ff8b51644a9d9b5591.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+343 KB
Lectures/Lecture1/Lecture1/static/img/9a18be677a3343c4b229ecb7b4ab9b9a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+601 KB
Lectures/Lecture1/Lecture1/static/img/9d4d074bbc134371b20419a75718fb59.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+340 KB
Lectures/Lecture1/Lecture1/static/img/a4059283552e4347ab197415d6a4df5e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+138 KB
Lectures/Lecture1/Lecture1/static/img/b487d80bfdc74de1810839fd0e3a2b01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.8 KB
Lectures/Lecture1/Lecture1/static/img/ba800e223dd94a94a1b7f27453eff4b4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+90.1 KB
Lectures/Lecture1/Lecture1/static/img/c17b9abfc91a413688de61ade8faa378.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+221 KB
Lectures/Lecture1/Lecture1/static/img/c20336fd6c6c4e8ea0ddf34ca93d18b4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+105 KB
Lectures/Lecture1/Lecture1/static/img/cbe4237d22284a95b47724122f8a3520.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.7 KB
Lectures/Lecture1/Lecture1/static/img/d01b8698db2f441bb3f17fc046c6c6f9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.06 MB
Lectures/Lecture1/Lecture1/static/img/d8b0933487344315ae8a30feffc4f714.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.3 KB
Lectures/Lecture1/Lecture1/static/img/dad3b2f690c542998f3b293a17e93bca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.23 MB
Lectures/Lecture1/Lecture1/static/img/dcf83c204d674f90a2d64d1c7514659a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+87.6 KB
Lectures/Lecture1/Lecture1/static/img/dfe5119d608a4121b2372426b5ec1953.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+384 KB
Lectures/Lecture1/Lecture1/static/img/e92a546ed4494275a48acb13c1666c1b.png
Oops, something went wrong.
Binary file added
BIN
+22.5 KB
Lectures/Lecture1/Lecture1/static/img/ed0c21510e0847bcb445e7ebdd2fdd22.png
Oops, something went wrong.
Binary file added
BIN
+1.24 MB
Lectures/Lecture1/Lecture1/static/img/eddb9a44e65c48789b229dfc3b8ba30f.png
Oops, something went wrong.
Binary file added
BIN
+183 KB
Lectures/Lecture1/Lecture1/static/img/f5cf29146cd440bca5b97ba41cbfb8c9.png
Oops, something went wrong.
Binary file added
BIN
+58.1 KB
Lectures/Lecture1/Lecture1/static/img/f758e14fedc043dfb5aed6a52af2acc1.png
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
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,9 @@ | ||
#include <stdio.h> | ||
|
||
int main(void) { | ||
float a = 1.05; | ||
int b = a * 100; | ||
printf("%d\n", b); | ||
printf("%.20f\n", a); | ||
return 0; | ||
} |
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,9 @@ | ||
#include <stdio.h> | ||
|
||
int main(void) { | ||
/* This is a long comment */ | ||
const int year = 2024; | ||
// This is a short comment | ||
printf("hello world %d!\n", year); | ||
return 0; | ||
} |
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,13 @@ | ||
CC := gcc | ||
CFLAGS := -Wall -Werror -Wpedantic -g -std=c11 | ||
TARGET := float hello-world | ||
|
||
all: $(TARGET) | ||
|
||
$(TARGET): %:%.c | ||
$(CC) $(CFLAGS) -o $@ $< | ||
|
||
clean: | ||
-rm -rf $(TARGET) | ||
|
||
.PHONY: all clean |
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,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>NekoBytes-TheMissing</title> | ||
</head> | ||
|
||
<body> | ||
<h1>Welcome to NekoBytes-TheMissing</h1> | ||
<p>Select a lecture below to get the code</p> | ||
<ul> | ||
<li><a href="Lecture1/">Lecture 1</a></li> | ||
<li><a href="Lecture2/">Lecture 2</a></li> | ||
</ul> | ||
</body> | ||
|
||
</html> |
File renamed without changes.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,102 @@ | ||
# Setup Tool | ||
|
||
这是一个用于初始化 Ubuntu 系统的 Bash 脚本,能够自动完成开发环境的安装与配置。脚本支持静默模式、卸载模式,并通过日志记录操作。 | ||
|
||
## 特性 | ||
|
||
- 自动更新系统及更换镜像源 | ||
- 支持安装常用编程工具和开发环境 | ||
- 安装并配置 `oh-my-zsh`、`oh-my-tmux` | ||
- 支持 `unsnap` 并安装 `flatpak` | ||
- 支持静默模式和卸载功能 | ||
|
||
## 使用方法 | ||
|
||
### 1. 克隆仓库获取工具 | ||
|
||
```bash | ||
git clone https://github.com/E1PsyCongroo/NekoBytes-TheMissing.git | ||
cd NekoBytes-TheMissing/Tools | ||
tar xvf setup.tar.gz | ||
``` | ||
|
||
### 2. 运行脚本 | ||
|
||
> [!INFO] | ||
> WSL 请使用 common_wsl.sh | ||
默认情况下,脚本将以详细模式运行,输出到终端并记录在一个日志文件中(文件名为当前日期)。 | ||
|
||
```bash | ||
bash common.sh | ||
``` | ||
|
||
你可以通过 --help 选项来查看可用的命令和参数。 | ||
|
||
```bash | ||
bash common.sh --help | ||
``` | ||
|
||
### 3. 可选参数 | ||
|
||
--help, -h: 显示帮助信息。 | ||
--quiet, -q: 以静默模式运行脚本(只输出错误信息到终端,标准输出记录到日志文件)。 | ||
--uninstall: 卸载脚本安装的软件和配置。 | ||
|
||
### 4. 示例 | ||
|
||
详细模式执行初始化 | ||
|
||
```bash | ||
bash common.sh | ||
``` | ||
|
||
静默模式执行初始化 | ||
|
||
```bash | ||
bash common.sh --quiet | ||
``` | ||
|
||
卸载安装的软件和配置 | ||
|
||
```bash | ||
bash common.sh --uninstall | ||
``` | ||
|
||
### 5. 日志记录 | ||
|
||
每次运行脚本,都会将输出日志保存在以当前日期命名的 .log 文件中。日志文件会记录脚本的每个操作步骤,便于排查问题。 | ||
|
||
```bash | ||
# 日志文件示例 | ||
2023-09-15.log | ||
``` | ||
|
||
## 脚本功能 | ||
|
||
1. 更新系统及安装 curl: | ||
脚本会自动运行 apt update,并安装 curl 工具。 | ||
2. 更换 Ubuntu 镜像源: | ||
通过执行 chsrc 脚本更换镜像源,提升软件包的下载速度。 | ||
3. 删除 Snap 并安装 Flatpak: | ||
脚本将删除 Snap 并改用 Flatpak 安装 Firefox 和其他软件包。 | ||
4. 安装编程工具: | ||
自动安装常用的开发工具和 CLI 工具,包括 build-essential, git, vim, tmux, zsh, tldr 等。 | ||
5. 安装并配置 Oh-My-Zsh: | ||
将 oh-my-zsh 安装到用户的 home 目录,并切换默认 Shell 为 zsh。 | ||
6. 安装 Nerd Font 字体: | ||
自动下载并安装 JetBrains Mono 字体以支持更多终端样式。 | ||
7. 配置 Oh-My-Tmux: | ||
脚本会将 tmux 配置文件复制到用户目录,完成终端管理工具的设置。 | ||
8. 卸载功能: | ||
支持卸载脚本安装的软件和配置,包括 oh-my-zsh、oh-my-tmux。 | ||
|
||
## 注意事项 | ||
|
||
- 该脚本需要 sudo 权限执行,以安装和卸载系统软件。 | ||
- 默认安装的开发环境包括了 zsh, tmux 等工具,如果你不需要某些工具,可以自行修改脚本。 | ||
- 在执行脚本前,请确保系统已更新并有足够的磁盘空间。 | ||
|
||
## 许可 | ||
|
||
该项目遵循 MIT License。 |
Binary file not shown.
Oops, something went wrong.