vault backup: 2022-12-13 09:35:21
This commit is contained in:
@@ -0,0 +1 @@
|
||||
[AnthonyCalandra/modern-cpp-features: A cheatsheet of modern C++ language and library features.](https://github.com/AnthonyCalandra/modern-cpp-features)
|
||||
1
00. Inbox/00. Temperary/C++20, How Hard Could It Be.md
Normal file
1
00. Inbox/00. Temperary/C++20, How Hard Could It Be.md
Normal file
@@ -0,0 +1 @@
|
||||
[C++20, How Hard Could It Be](https://docs.google.com/presentation/d/1HwLNSyHxy203eptO9cbTmr7CH23sBGtTrfOmJf9n0ug/edit?fbclid=IwAR2wToW9uFJuLtUR9nftfv9N9axXwPK7HmuJWqgVmCeXd1XJF7ySQIkNsJM&resourcekey=0-GH5F3wdP7D4dmxvLdBaMvw#slide=id.g1c5cc391dd_2_295)
|
||||
8
00. Inbox/00. Temperary/Coding style.md
Normal file
8
00. Inbox/00. Temperary/Coding style.md
Normal file
@@ -0,0 +1,8 @@
|
||||
## Common Rule
|
||||
### LowerCamel case
|
||||
Variables and functions start with lower camel case. e.g.
|
||||
```cpp
|
||||
int myName = 0;
|
||||
void doSomething(int argNum1);
|
||||
```
|
||||
|
||||
1
00. Inbox/00. Temperary/FFMPEG 收集.md
Normal file
1
00. Inbox/00. Temperary/FFMPEG 收集.md
Normal file
@@ -0,0 +1 @@
|
||||
- [Qt音视频开发03-ffmpeg倍速播放(半倍速/2倍速/4倍速/8倍速)_feiyangqingyun的博客-CSDN博客_ffmpeg倍速播放](https://blog.csdn.net/feiyangqingyun/article/details/127904116)
|
||||
16
00. Inbox/00. Temperary/Modern C++ The good parts.md
Normal file
16
00. Inbox/00. Temperary/Modern C++ The good parts.md
Normal file
@@ -0,0 +1,16 @@
|
||||
1. Use std::shared_ptr & std::unique_ptr & std::weak_ptr
|
||||
2. Use std::array or std::vector
|
||||
3. Use structured binding & std::tuple
|
||||
4. Use for (auto& elem : collector)
|
||||
5. Use std::format
|
||||
6. Use std::optional
|
||||
7. Use auto for return type
|
||||
8. Use auto in variable declaration
|
||||
9. Use `using` to replace `#define`
|
||||
10. Use "Lambda expression" and std::function
|
||||
11. `[[deprecated]]` attribute
|
||||
12. Maybe...std::any?
|
||||
13. And more, constexpr, concept,
|
||||
|
||||
## Reference
|
||||
- [AnthonyCalandra/modern-cpp-features: A cheatsheet of modern C++ language and library features.](https://github.com/AnthonyCalandra/modern-cpp-features)
|
||||
1
00. Inbox/00. Temperary/Modern C++ use in Chromium.md
Normal file
1
00. Inbox/00. Temperary/Modern C++ use in Chromium.md
Normal file
@@ -0,0 +1 @@
|
||||
[Modern C++ use in Chromium](https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++-features.md#Declaring-non_type-template-parameters-with-auto-tbd)
|
||||
8
00. Inbox/00. Temperary/[APP] 設定CPU Power mode.md
Normal file
8
00. Inbox/00. Temperary/[APP] 設定CPU Power mode.md
Normal file
@@ -0,0 +1,8 @@
|
||||
用 [`PowerWriteACValueIndex()`](https://learn.microsoft.com/en-us/windows/win32/api/powersetting/nf-powersetting-powerwriteacvalueindex) 或是 `PowerWriteDCValueIndex()` 來設定,然後用 `PowerSetActiveScheme()` 使其生效。
|
||||
|
||||
關於 scheme 的 GUID: https://learn.microsoft.com/en-us/windows/win32/power/power-setting-guids
|
||||
|
||||
C#的使用:[C#使用WinAPI 修改电源设置,临时禁止笔记本合上盖子时睡眠(使用PowerGetActiveScheme等函数,以及C#对WINAPI的调用) - findumars - 博客园](https://www.cnblogs.com/findumars/p/6298724.html)
|
||||
使用 API 的例子:[qt - Disable CPU package idle states in Windows from C++ code - Stack Overflow](https://stackoverflow.com/questions/69346153/disable-cpu-package-idle-states-in-windows-from-c-code)
|
||||
|
||||
[API for Minimum(Maximum) Processor State , C++ - Stack Overflow](https://stackoverflow.com/questions/22523708/api-for-minimummaximum-processor-state-c)
|
||||
3
00. Inbox/00. Temperary/列出所有 USB 裝置.md
Normal file
3
00. Inbox/00. Temperary/列出所有 USB 裝置.md
Normal file
@@ -0,0 +1,3 @@
|
||||
- [MFC枚举USB设备碰到的一个疑难,还没解决 - Jojodru - 博客园](https://www.cnblogs.com/jojodru/p/3218081.html)
|
||||
- [遍历当前USB设备信息_51CTO博客_获取usb设备信息](https://blog.51cto.com/u_15127593/3620239)
|
||||
- [遍历Windows USB设备树的几种方法_-飞鹤-的博客-CSDN博客_设备实例id](https://blog.csdn.net/feihe0755/article/details/103747511)
|
||||
19
00. Inbox/00. Temperary/猴子都會的AI繪圖軟體安裝教學.md
Normal file
19
00. Inbox/00. Temperary/猴子都會的AI繪圖軟體安裝教學.md
Normal file
@@ -0,0 +1,19 @@
|
||||
## 來源
|
||||
- [[討論] 猴子都會的AI繪圖軟體安裝教學 - ACG板 - Disp BBS](https://disp.cc/m/ACG/fpup)
|
||||
|
||||
## Steps
|
||||
1. Clone source code
|
||||
`git clone git@github.com:AUTOMATIC1111/stable-diffusion-webui.git`
|
||||
|
||||
2. Download model from: [https://cyberes.github.io/stable-diffusion-models/](https://cyberes.github.io/stable-diffusion-models/)
|
||||
1. Standard Model
|
||||
- Use torrent: `magnet:?xt=urn:btih:3A4A612D75ED088EA542ACAC52F9F45987488D1C&tr=udp://tracker.opentrackr.org:1337`
|
||||
- Or from google drive: https://drive.google.com/file/d/1wHFgl0ivCmIZv88hVZXkb8oy9qCuaBGA/view
|
||||
2. Waifu Diffusion
|
||||
- Torrent: `magnet:?xt=urn:btih:PK4UPXMW5TC7O2MKF7YJMIDX4NRBYO5R&dn=wd-v1-3-float32.ckpt&xl=4265384157&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce`
|
||||
- or from HuggingFace: https://huggingface.co/hakurei/waifu-diffusion-v1-3/resolve/main/wd-v1-3-float32.ckpt
|
||||
|
||||
3. Put `wd-v1-3-float32.ckpt` and `sd-v1-4.ckpt` to `stable-diffusion-webui\models\Stable-diffusion`
|
||||
4. Open `webui-user.bat` and set `PYTHON` to your path of `python.exe`, e.x. `set PYTHON="C:\Python310\python.exe"`
|
||||
5. Run `webui-user.bat`
|
||||
6. Open web browser and goto [http://127.0.0.1:7860](http://127.0.0.1:7860/)
|
||||
Reference in New Issue
Block a user