- 7zip https://www.7-zip.org/download.html
- everything https://www.voidtools.com/downloads/
- powershell core https://github.com/PowerShell/PowerShell/releases
- winget https://www.microsoft.com/en-hk/p/app-installer/9nblggh4nns1?rtc=1
- rapidee https://www.rapidee.com/en/download
- sumatra pdfreader https://www.sumatrapdfreader.org/download-free-pdf-viewer
- snipaste
This file contains hidden or 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
| from typing import Any, Callable, List, Iterable | |
| class Pipeline: | |
| class __processor: | |
| def __init__(self, func, is_filter:bool) -> None: | |
| self.func = func | |
| self.is_filter = is_filter | |
| def __call__(self, *args: Any) -> Any: | |
| return self.func(*args) |
This file contains hidden or 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
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "console_title":true, | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "type": "path", |
This file contains hidden or 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
| import subprocess | |
| import time | |
| import os | |
| import argparse | |
| class Commit: | |
| def __init__(self, new: bool) -> None: | |
| self.commit_num = 0 | |
| if new: |
This file contains hidden or 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
| import argparse | |
| import os | |
| import subprocess | |
| def should_foramt(file: str): | |
| if file.endswith(".cpp"): | |
| return True | |
| if file.endswith(".h"): | |
| return True |
This file contains hidden or 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
| #include <assert.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <pthread.h> | |
| // queue implementation start | |
| const int g_invalid_value = -1000000; |
This file contains hidden or 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
| template<typename T> | |
| void swap(T lhs, T rhs){ | |
| T tmp = lhs; | |
| lhs = rhs; | |
| rhs = tmp; | |
| } |