1 2 3 4 5 ··· 16 下一页

2024年8月23日

md5sum calculation by python

摘要: # md5sum.pyy import re import clipboard import os import cv2 import numpy as np import hashlib # Finding Md5 of Files Recursively in Directory in Pyth 阅读全文

posted @ 2024-08-23 00:33 yusisc 阅读(4) 评论(0) 推荐(0) 编辑

2024年8月18日

simple sprintf wrapper

摘要: version 0 #include <memory> #include <string> #include <stdexcept> template<typename ... Args> std::string string_format( const std::string& format, A 阅读全文

posted @ 2024-08-18 22:27 yusisc 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月24日

a method to make some handy tools with python

摘要: In my working of computer, there are a lot of simple jobs that are frequently repeated. I tried to find a way to make these job been processed easily. 阅读全文

posted @ 2024-07-24 23:39 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

2024年7月7日

cpp format a string

摘要: for older standard cpp char cc[55]; sprintf_s(cc, "%09d tttttt %.3f sssss", 7, 1.234567); cout << cc << endl; // 000000007 tttttt 1.235 sssss string s 阅读全文

posted @ 2024-07-07 02:11 yusisc 阅读(4) 评论(0) 推荐(0) 编辑

understanding r-value in cpp

摘要: r-value stl - C++ Double Address Operator? (&&) - Stack Overflow: https://stackoverflow.com/questions/4549151/c-double-address-operator && is new in C 阅读全文

posted @ 2024-07-07 01:12 yusisc 阅读(10) 评论(0) 推荐(0) 编辑

use smart pointer to manage a dynamically allocated array in cpp

摘要: c++ - Can you make a std::shared_ptr manage an array allocated with new T[]? - Stack Overflow: https://stackoverflow.com/questions/13061979/can-you-ma 阅读全文

posted @ 2024-07-07 00:59 yusisc 阅读(9) 评论(0) 推荐(0) 编辑

2024年7月6日

modifing windows color from registry

摘要: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Colors] "ActiveBorder"="180 180 180" "ActiveTitle"="153 180 209" "AppWorkspace"= 阅读全文

posted @ 2024-07-06 08:59 yusisc 阅读(2) 评论(0) 推荐(0) 编辑

2024年5月26日

Why is it considered "bad practice" to use macros in C++?

摘要: This article originally appeared here on Quora It is a common practice to use macros, you just have to be aware of the proper use and unfortunate misu 阅读全文

posted @ 2024-05-26 00:23 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

2024年5月6日

parallel processing in python

摘要: module usage threading t1 = threading.Thread(target=print_square, args=(10,)) t1.start() t1.join() concurrent.futures pool = concurrent.futures.Thread 阅读全文

posted @ 2024-05-06 01:39 yusisc 阅读(3) 评论(0) 推荐(0) 编辑

2024年4月28日

start windows executable in multi-process and wait its ending

摘要: the executable import time import random import sys time.sleep(random.random()) print(sys.argv[1]) the calling control import subprocess ll = [] for i 阅读全文

posted @ 2024-04-28 21:53 yusisc 阅读(1) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 16 下一页

导航