Crazy timing revert change

This commit is contained in:
PinkR1ver 2024-03-02 17:16:52 +08:00
parent 12641095c1
commit 9c07020288
188 changed files with 240 additions and 203 deletions

View File

@ -4,8 +4,11 @@ from git import Repo
if __name__ == '__main__':
content_path = os.path.join(os.path.dirname(__file__))
prefix_path = os.path.join(content_path, "content")
content_path = r"C:\Users\83549\Documents\github_proj\content"
prefix_path = os.path.join(os.path.dirname(__file__), 'content')
file_path_list = []
date_list = []
for root, dirs, files in os.walk(content_path):
for file in files:
@ -15,23 +18,57 @@ if __name__ == '__main__':
# ignore bug and continue running
try:
if file.endswith(".md"):
if file.endswith(".md"):
file_path = os.path.join(root, file)
repo = Repo(content_path)
file_path = os.path.relpath(file_path, repo.working_dir)
commit = repo.iter_commits(paths=file_path, max_count=1).__next__()
# print(f"{file_path} - {str(commit.committed_datetime).split(' ')[0]}")
file_path = file_path.replace('文学', 'literature')
file_path = file_path.replace('句子', 'sentence')
# check if path exists, no matter capital or not
file_path_list.append(os.path.join(prefix_path, file_path).lower())
date_list.append(str(commit.committed_datetime).split(' ')[0])
# print(file_path_list[-1])
for root, dirs, files in os.walk(prefix_path):
for file in files:
if '.' in root:
continue
if file.endswith(".md"):
check_path = os.path.join(root, file)
check_path = check_path.lower()
if check_path in file_path_list:
index = file_path_list.index(check_path)
file_path = os.path.join(root, file)
repo = Repo(content_path)
file_path = os.path.relpath(file_path, repo.working_dir)
commit = repo.iter_commits(paths=file_path, max_count=1).__next__()
# print(f"{file_path} - {str(commit.committed_datetime).split(' ')[0]}")
date = date_list[index]
# check if path exists, no matter capital or not
print(os.path.join(prefix_path, file_path))
# open file and write date into it
f = open(file_path, 'r', encoding="utf-8")
lines = f.readlines()
for i in range(0, len(lines)):
if lines[i].startswith("date:") == True:
lines[i] = f"date: {date}\n"
f.close()
except:
# output error message
print(f"Error: {file_path}")
pass
continue
f = open(file_path, 'w', encoding="utf-8")
f.writelines(lines)
f.close()
print(f"{file_path} - {date}")

View File

@ -3,7 +3,7 @@ title: Home
tags:
- catalog
- MOC
date: 2023-09-13
date: 2023-09-19
---
🕵️‍♂️ This is Jude Wang's vault about his notebook, his knowledge, his second brain.

View File

@ -2,7 +2,7 @@
title: Atlas - Map of Maps
tags:
- MOC
date: 2023-03-16
date: 2024-02-28
---
🚧 There are notebooks about his research career:

View File

@ -3,7 +3,7 @@ title: Code Framework Learn
tags:
- web
- code_tool
date: 2023-06-06
date: 2023-12-03
---
# Web Framework

View File

@ -1,4 +1,4 @@
---
title: Flask - MOC
date: 2023-06-06
date: 2023-12-03
---

View File

@ -4,7 +4,7 @@ tags:
- basic
- coding-language
- MOC
date: 2023-06-06
date: 2023-09-04
---
# Python

View File

@ -4,7 +4,7 @@ tags:
- python
- coding-language
- basic
date: 2023-06-06
date: 2023-09-04
---

View File

@ -4,7 +4,7 @@ tags:
- math
- MOC
- geometry
date: 2024-02-28
date: 2024-02-27
---
# 3D Geometry Algorithm

View File

@ -3,7 +3,7 @@ title: Delaunay Triangulation
tags:
- math
- geometry
date: 2024-02-28
date: 2023-09-04
---
# What is Delaunay Triangulation?

View File

@ -4,7 +4,7 @@ tags:
- MOC
- algorithm
- data-structure
date: 2024-02-28
date: 2023-09-15
---
# Tree-like Structure

View File

@ -4,7 +4,7 @@ tags:
- data-structure
- basic
- algorithm
date: 2024-02-28
date: 2023-09-04
---
# Basic Concept

View File

@ -3,6 +3,6 @@ title: Minimum Spanning Tree
tags:
- data-structure
- graph
date: 2024-02-28
date: 2023-09-15
---
Not now...

View File

@ -3,7 +3,7 @@ title: Spanning Tree
tags:
- graph
- data-structure
date: 2024-02-28
date: 2023-09-19
---
# What is Spanning Tree?

View File

@ -3,7 +3,7 @@ title: Topological Sorting
tags:
- data-structure
- graph
date: 2024-02-28
date: 2023-09-14
---
# What is Topological Sorting

View File

@ -4,7 +4,7 @@ tags:
- algorithm
- string
- string-search
date: 2024-02-28
date: 2024-01-25
---
# Abstract

View File

@ -4,7 +4,7 @@ tags:
- data-structure
- basic
- algorithm
date: 2024-02-28
date: 2023-09-04
---

View File

@ -3,7 +3,7 @@ title: Segment Tree
tags:
- data-structure
- tree
date: 2024-02-28
date: 2023-09-13
---
# Overview

View File

@ -3,6 +3,6 @@ title: Two Pointers
tags:
- algorithm
- pointer
date: 2024-02-28
date: 2024-01-17
---

View File

@ -3,7 +3,7 @@ title: Model Evaluation - MOC
tags:
- deep-learning
- evaluation
date: 2024-02-28
date: 2024-01-17
---
* [Model Evaluation in Time Series Forecasting](computer_sci/deep_learning_and_machine_learning/Evaluation/time_series_forecasting.md)

View File

@ -4,7 +4,7 @@ tags:
- deep-learning
- evaluation
- time-series-dealing
date: 2024-02-28
date: 2024-01-17
---
![](computer_sci/deep_learning_and_machine_learning/Evaluation/attachments/Pasted%20image%2020230526162839.png)

View File

@ -4,7 +4,7 @@ tags:
- deep-learning
- model
- time-series-dealing
date: 2024-02-28
date: 2024-01-17
---
DeepAR, an autoregressive recurrent network developed by Amazon, is the first model that could natively work on multiple time-series. It's a milestone in time-series community.

View File

@ -3,7 +3,7 @@ title: Famous Model MOC
tags:
- deep-learning
- MOC
date: 2024-02-28
date: 2024-01-17
---
# Time-series

View File

@ -4,6 +4,6 @@ tags:
- deep-learning
- model
- time-series-dealing
date: 2024-02-28
date: 2023-09-04
---

View File

@ -4,7 +4,7 @@ tags:
- deep-learning
- LLM
- NLP
date: 2024-02-28
date: 2024-01-17
---
# Training

View File

@ -5,7 +5,7 @@ tags:
- LLM
- deep-learning
- basic
date: 2024-02-28
date: 2024-01-17
---
# LLM Temperature

View File

@ -4,7 +4,7 @@ tags:
- LLM
- basic
- langchain
date: 2024-02-28
date: 2024-01-17
---
# What is LangChain

View File

@ -5,7 +5,7 @@ tags:
- metircs
- deep-learning
- benchmark
date: 2024-02-28
date: 2024-01-17
---
# Overview

View File

@ -5,7 +5,7 @@ tags:
- deep-learning
- RLHF
- LLM-training-method
date: 2024-02-28
date: 2024-01-17
---

View File

@ -4,6 +4,6 @@ tags:
- dataset
- LLM
- deep-learning
date: 2024-02-28
date: 2023-09-04
---

View File

@ -3,6 +3,6 @@ title: How to do use fine tune tech to create your chatbot
tags:
- deep-learning
- LLM
date: 2024-02-28
date: 2023-09-04
---

View File

@ -5,7 +5,7 @@ tags:
- LLM
- fine-tune
- LLaMA
date: 2024-02-28
date: 2024-01-17
---
![](computer_sci/deep_learning_and_machine_learning/LLM/train/finr_tune/attachments/Pasted%20image%2020230627145954.png)

View File

@ -3,7 +3,7 @@ title: LLM training steps
tags:
- LLM
- deep-learning
date: 2024-02-28
date: 2023-09-04
---
训练大型语言模型LLM的方法通常涉及以下步骤

View File

@ -4,7 +4,7 @@ tags:
- LLM
- LLM-training-method
- deep-learning
date: 2024-02-28
date: 2024-01-17
---
# Find a dataset

View File

@ -4,7 +4,7 @@ tags:
- MOC
- deep-learning
- interpretability
date: 2024-02-28
date: 2024-01-17
---
* [SHAP](computer_sci/deep_learning_and_machine_learning/Model_interpretability/SHAP.md)

View File

@ -4,7 +4,7 @@ tags:
- deep-learning
- interpretability
- algorithm
date: 2024-02-28
date: 2024-01-17
---
SHAP is the most popular model-agnostic technique that is used to explain predictions. SHAP stands for **SH**apley **A**dditive ex**P**lanations

View File

@ -5,6 +5,6 @@ tags:
- deep-learning
- tokenization
- basic
date: 2024-02-28
date: 2023-09-04
---

View File

@ -4,7 +4,7 @@ tags:
- metrics
- time-series-dealing
- evalution
date: 2024-02-28
date: 2024-01-17
---
![](computer_sci/deep_learning_and_machine_learning/Trick/attachments/Pasted%20image%2020230526164724.png)

View File

@ -4,7 +4,7 @@ tags:
- loss-function
- deep-learning
- deep-learning-math
date: 2024-02-28
date: 2024-01-17
---
在大多数现实世界的预测问题中,我们的预测所带来的不确定性具有重要价值。相较于仅仅提供点估计,了解预测范围能够显著改善许多商业应用的决策过程。**Quantile loss**就是为例帮助我们了解预测范围的loss function。

View File

@ -4,7 +4,7 @@ tags:
- machine-learning
- clustering
- algorithm
date: 2024-02-28
date: 2024-01-17
---
# Step by Step

View File

@ -3,6 +3,6 @@ title: Gated Recurrent Unit
tags:
- deep-learning
- time-series-dealing
date: 2024-02-28
date: 2023-09-07
---

View File

@ -4,7 +4,7 @@ tags:
- deep-learning
- time-series-dealing
- basic
date: 2024-02-28
date: 2024-01-17
---
> [!quote]

View File

@ -3,7 +3,7 @@ title: XGBoost
tags:
- deep-learning
- ensemble-learning
date: 2024-02-28
date: 2024-01-17
---

View File

@ -3,7 +3,7 @@ title: AdaBoost
tags:
- deep-learning
- ensemble-learning
date: 2024-02-28
date: 2023-09-07
---
# Video you need to watch first

View File

@ -2,7 +2,7 @@
title: Decision Tree
tags:
- machine-learning
date: 2024-02-28
date: 2023-09-07
---
Only vedio here:

View File

@ -3,7 +3,7 @@ title: Deep Learning MOC
tags:
- Catalog
- MOC
date: 2024-02-28
date: 2024-01-17
---

View File

@ -2,7 +2,7 @@
title: Deep Neural Decision Forests
tags:
- deep-learning
date: 2024-02-28
date: 2024-01-17
---
# Background

View File

@ -2,7 +2,7 @@
title: Random Forest
tags:
- machine-learning
date: 2024-02-28
date: 2024-01-17
---
# Background

View File

@ -3,7 +3,7 @@ title: "Transformer"
tags:
- deep-learning
- attention
date: 2024-02-28
date: 2024-01-17
---
> [!info]

View File

@ -3,6 +3,6 @@ title: Machine Learning MOC
tags:
- MOC
- machine-learning
date: 2024-02-28
date: 2024-01-17
---
* [SVM](computer_sci/deep_learning_and_machine_learning/machine_learning/SVM.md)

View File

@ -2,7 +2,7 @@
title: Support Vector Machine
tags:
- machine-learning
date: 2024-02-28
date: 2024-02-27
---
# Overview

View File

@ -4,7 +4,7 @@ tags:
- MOC
- hardware
- chip
date: 2024-02-28
date: 2023-09-04
---
# Microcontroller unit (MCU)

View File

@ -3,7 +3,7 @@ title: Independence & Correlation
tags:
- math
- statistics
date: 2024-02-28
date: 2024-02-27
---
# Independent

View File

@ -3,7 +3,7 @@ title: Data science MOC
tags:
- data
- statistics
date: 2024-02-28
date: 2023-12-18
---
# Basic Concept

View File

@ -4,7 +4,7 @@ tags:
- MOC
- statistics
- stochastic-process
date: 2024-02-28
date: 2023-09-19
---
# Basic Concept

View File

@ -5,7 +5,7 @@ tags:
- math
- stochastic-process
- signal-processing
date: 2024-02-28
date: 2023-09-19
---
# Reference

View File

@ -3,7 +3,7 @@ title: The economist style graph
tags:
- data-visual
- statistics
date: 2024-02-28
date: 2023-12-18
---
# Reference

View File

@ -3,7 +3,7 @@ title: Visual Information Theory
tags:
- data
- visualization-tech
date: 2024-02-28
date: 2023-12-18
---
# Reference

View File

@ -5,7 +5,7 @@ tags:
- tableau
- data-visual
- data
date: 2024-02-28
date: 2023-12-18
---
# What is Tableau

View File

@ -3,7 +3,7 @@ title: Food - MOC
tags:
- food
- MOC
date: 2023-12-01
date: 2023-12-03
---
# Intro

View File

@ -2,7 +2,7 @@
title: Evaluation Criteria
tags:
- food
date: 2023-12-01
date: 2023-12-03
---

View File

@ -4,5 +4,5 @@ tags:
- article
- 文学
- MOC
date: 2023-05-01
date: 2023-11-30
---

View File

@ -3,7 +3,7 @@ title: 文学
tags:
- MOC
- 文学
date: 2023-05-01
date: 2023-11-30
---
In this MOC, it shows you the path to what I record for some interesting sentences, including Chinese and English, even Japanese.

View File

@ -2,7 +2,7 @@
title: Poem in 2018
tags:
- poem
date: 2023-05-01
date: 2023-07-01
---
> [!quote]

View File

@ -3,7 +3,7 @@ title: Poem in 2022
tags:
- 文学
- poem
date: 2023-05-01
date: 2023-07-01
---
> [!quote]

View File

@ -2,7 +2,7 @@
title: Poem in 2023
tags:
- poem
date: 2023-05-01
date: 2023-07-01
---
> [!quote]

View File

@ -3,7 +3,7 @@ title: My Poem
tags:
- 文学
- poem
date: 2023-05-01
date: 2023-07-01
---
* [2018](literature/poem/2018.md)

View File

@ -4,7 +4,7 @@ tags:
- 文学
- 摘抄
- commets
date: 2023-05-01
date: 2023-07-03
---
> [!quote]

View File

@ -5,7 +5,7 @@ tags:
- 摘抄
- inspiration
- feeling
date: 2023-05-01
date: 2023-11-30
---
> [!quote]

View File

@ -5,7 +5,7 @@ tags:
- 摘抄
- love
- poem
date: 2023-05-01
date: 2024-02-28
---
> [!quote]

View File

@ -4,7 +4,7 @@ tags:
- 文学
- 摘抄
- motivation
date: 2023-05-01
date: 2023-09-13
---
> [!quote]

View File

@ -4,7 +4,7 @@ tags:
- 句子
- 文学
- 摘抄
date: 2023-05-01
date: 2023-05-12
---
> [!quote]

View File

@ -5,7 +5,7 @@ tag:
- 文学
- 摘抄
- music
date: 2023-05-01
date: 2023-04-22
---
> [!quote]

View File

@ -4,7 +4,7 @@ tag:
- 句子
- 文学
- 摘抄
date: 2023-05-01
date: 2023-12-04
---
> [!quote]

View File

@ -4,7 +4,7 @@ tags:
- 文学
- 摘抄
- poem
date: 2023-05-01
date: 2023-12-12
---
> [!quote]

View File

@ -4,7 +4,7 @@ tags:
- 文学
- 摘抄
- MOC
date: 2023-05-01
date: 2023-11-30
---
* [🌸Love about](literature/sentence/love_about.md)

View File

@ -3,7 +3,7 @@ title: 🧙Wisdom
tags:
- 文学
- 摘抄
date: 2023-05-01
date: 2024-01-02
---
> [!quote]

View File

@ -3,7 +3,7 @@ title: Log 2023.07.01 - 云朵也是会动滴☁️
tags:
- log
- photography
date: 2023-07-01
date: 2023-09-11
---
晚上去食堂吃饭的路上,看到了今天最棒的云

View File

@ -4,7 +4,7 @@ tags:
- pixel-art
- log
- clustering
date: 2023-07-03
date: 2023-09-11
---
今天用k-means聚类算法做了一个像素化的效果还蛮好玩的

View File

@ -4,7 +4,7 @@ tags:
- log
- daily
- 文学
date: 2023-07-01
date: 2023-09-27
---
# Log 2023

View File

@ -3,7 +3,7 @@ title: Math MOC
tags:
- math
- MOC
date: 2024-02-28
date: 2023-12-03
---
# Statistics

View File

@ -4,7 +4,7 @@ tags:
- math
- statistics
- basic
date: 2024-02-28
date: 2023-05-23
---
**分位数**英语Quantile亦称**分位点**是指用分割点cut point将一个随机变量的概率分布范围分为几个具有相同概率的连续区间。分割点的数量比划分出的区间少1例如3个分割点能分出4个区间。

View File

@ -7,7 +7,7 @@ tags:
- algorithm
- discrete-mathematics
- set-theory
date: 2024-02-28
date: 2023-07-07
---

View File

@ -4,7 +4,7 @@ tags:
- math
- optimize
- optimization
date: 2024-02-28
date: 2023-12-03
---
# Why I write this note?

View File

@ -3,7 +3,7 @@ title: Cauchy Principal Value
tags:
- math
- real-analysis
date: 2024-02-28
date: 2024-01-12
---
# Notation

View File

@ -4,7 +4,7 @@ tags:
- Polaroid
- photography
- skill
date: 2024-02-28
date: 2023-04-20
---
* [宝丽来翻拍9宫格](photography/aesthetic/Polaroid/Polaroid_showcase.md)

View File

@ -3,7 +3,7 @@ title: How to use Moodboard
tags:
- photography
- skill
date: 2024-02-28
date: 2023-04-20
---
# Overview

View File

@ -5,7 +5,7 @@ tags:
- Polaroid
- film
- skill
date: 2024-02-28
date: 2023-04-10
---
The most thing you need to know is that, **the right exposure is in your head**.

View File

@ -5,7 +5,7 @@ tags:
- Polaroid
- story
- film
date: 2024-02-28
date: 2024-02-27
---
# Hiking

View File

@ -4,7 +4,7 @@ tags:
- photography
- landscape
- MOC
date: 2024-02-28
date: 2023-04-22
---
* [🌊Sea MOC](photography/aesthetic/Landscape/Sea/Sea_MOC.md)

View File

@ -4,7 +4,7 @@ tags:
- photography
- landscape
- photography
date: 2024-02-28
date: 2023-04-22
---
![](photography/aesthetic/Landscape/Sea/attachments/Pasted%20image%2020230420014349.png)

View File

@ -5,7 +5,7 @@ tags:
- sea
- photography
- aesthetic
date: 2024-02-28
date: 2023-04-22
---
* [Fujifilm Blue🌊, 小红书-Philips谢骏](photography/aesthetic/Landscape/Sea/Fujifilm_Blue_by_小红书_Philips谢骏.md)

View File

@ -5,7 +5,7 @@ tags:
- sea
- landscape
- aesthetic
date: 2024-02-28
date: 2023-04-22
---
![](photography/aesthetic/Landscape/Sea/attachments/shiifoncake_338949220_771246770941652_287141902256013940_n.jpg)

View File

@ -4,7 +4,7 @@ tags:
- photography
- Polaroid
- MOC
date: 2024-02-28
date: 2023-04-20
---
* [🖼How to show Polaroid photo in a great way](photography/aesthetic/Polaroid/Polaroid_showcase.md)

View File

@ -4,7 +4,7 @@ tags:
- photography
- Polaroid
- share
date: 2024-02-28
date: 2023-04-20
---

View File

@ -4,7 +4,7 @@ tags:
- photography
- portrait
- 摘抄
date: 2024-02-28
date: 2023-04-20
---
Credits to [Marta Bevacqua](https://www.martabevacquaphotography.com/),

View File

@ -6,7 +6,7 @@ tags:
- korean
- cute
- 摘抄
date: 2024-02-28
date: 2023-04-20
---
Credits to [MV - CHEEZE(치즈) _ Today's Mood(오늘의 기분)](https://www.youtube.com/watch?v=zRq_DlEzygk),

View File

@ -5,7 +5,7 @@ tags:
- portrait
- 摘抄
- MOC
date: 2024-02-28
date: 2023-04-20
---
* [🌸Flower & Girl](photography/aesthetic/Portrait/Flower_and_Girl.md)

View File

@ -5,7 +5,7 @@ tags:
- grainy
- style
- share
date: 2024-02-28
date: 2023-04-20
---
![](photography/aesthetic/Style/attachments/cinematicshine_326914596_601425291912114_4038822895364546166_n.jpg)

View File

@ -5,7 +5,7 @@ tags:
- style
- share
- MOC
date: 2024-02-28
date: 2023-04-20
---
* [🌅Warmth - Nguan](photography/aesthetic/Style/Warmth_by_Nguan.md)

View File

@ -3,7 +3,7 @@ title: 🎈Warmth - Nguan
tags:
- share
- photography
date: 2024-02-28
date: 2023-04-20
---
Credits to [Nguan](https://www.instagram.com/_nguan_/)

Some files were not shown because too many files have changed in this diff Show More