How to correctly set c_cpp_properties.json
of VS Code on Windows.
See link here: Official Reference.
Below is my personal working example, which does the compiling job as well as removes annoying wavy underlines.
license: gpl-3.0 |
How to correctly set c_cpp_properties.json
of VS Code on Windows.
See link here: Official Reference.
Below is my personal working example, which does the compiling job as well as removes annoying wavy underlines.
wklchris, last updated in Mar 2022
Table of Contents:
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
@author: Nzix | |
""" | |
import os, shutil, platform, subprocess | |
import re, zipfile, json | |
import ssl |
Known difficulties:
time
doesn't provide time operation. You can't doing "minus" between two timestamps.
time.process_time()
can record the CPU running time (excluding sleep). This is for performance purpose, not for actual run.datetime
records the time duration between two timestamps in classtype of timedelta
. However, this type of variable doesn't support strftime
function.
Other methods that I don't like but may work for you:
main()
, but I don't like doing that because it introduces extra indentation.以从 Windows 设备(本地机)通过 SSH 连接到另一台 Windows 设备(远程机)为例。毕竟 Windows 是最难配置的,如果有一边是 Linux 设备会简单很多。
目录:
This is an unofficial gist for patching the A1111's webui so that makes the extension sd_webui_SAG work.