shensunbo Blog

「离开世界之前 一切都是过程」

bgfx

人赞过

blender脚本,

选中大于10000个三角形的对象 1 2 3 4 5 6 7 8 9 10 11 import bpy bpy.ops.object.select_all(action='DESELECT') for obj in bpy.data.objects: if obj.type == 'MESH': tri_count = len(obj.data.polygons)...
人赞过

编程

纯方法类接口都声明为静态的
人赞过

C++ 常用操作

使用signal机制, 来捕获CTRL + C, 以使while(1)类的循环正常终止,正常情况下使用ctrl + c杀死程序,并不会调用析构函数,对有些库和框架可能会出问题 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #include <csignal> #include <iostream> ...
人赞过

english practice 2

Weekend Plans: What do you like to do on weekends? Favorite TV Shows: What TV shows do you enjoy watching? Social Media: How do you use social media? Holidays: What’s your favorite holiday...
人赞过

TIOVX

人赞过

状态机

人赞过

代码风格

Clean Code Readability: Code should be easy to read and understand. Use clear and concise variable names, formatting, and comments to make the code self-explanatory. Simplicity: Favor simplici...
人赞过

google test matcher

simple matcher _: The “don’t care” matcher. Matches any value. Eq(value): Matches a value that is equal to the specified value. Ne(value): Matches a value that is not equal to the specified ...
人赞过

github无法连接

sudo vim /etc/resolv.conf 添加以下内容: 1 2 nameserver 8.8.8.8 nameserver 114.114.114.114 NOTE: 8.8.8.8 和 114.114.114.114 是常见的公共 DNS 服务器 可选: sudo vim /etc/wsl.conf 添加: 1 2 [network] generateResolvC...
人赞过