字符串是Redis最常见的结构,Redis没有用C中的字符串,是自己构建的simple dynamic string来表示字符串 字符串的源码在sds.c/sds.h sds的基本结构 struct sdshdr { unsigned int len; //len表示当前buf中已使用字节长度 un ...
分类:
其他好文 时间:
2020-06-13 23:39:28
阅读次数:
94
架构设计原则之我见1 2020.4.18 本次读的是王概凯老师的 架构设计原则之我见(一):反思 KISS 原则 首先我们要知道什么是KISS原则,并不是你想的那样,KISS(Keep It Simple, Stupid)原则翻译成中文,意思是“保持简单、愚蠢”。这是一句没有主语的话,猜想主语是指设 ...
分类:
其他好文 时间:
2020-06-13 21:33:16
阅读次数:
58
This blog is meant to give a very high level and generalized introduction into the workflow behind creating games. It is not meant to be a strict guid ...
分类:
其他好文 时间:
2020-06-13 21:29:05
阅读次数:
79
CF1165F2 Microtransactions (hard version) 题目描述 The only difference between easy and hard versions is constraints. Ivan plays a computer game that cont ...
分类:
其他好文 时间:
2020-06-13 17:20:37
阅读次数:
72
Odd Selection Subsequence Hate Game On Leaves Guess The Maximums Tree Shuffling A、Odd Selection 题意: $n$个数选$x$个数能不能使它们的和是奇数。 题解: 按奇偶分一波情况就行。 AC代码: 1 #i ...
分类:
其他好文 时间:
2020-06-13 14:33:52
阅读次数:
74
构建深度学习框架运行平台 将为TensorFlow、PyTorch和TorchScript之外的元素构建一个简单的深度学习框架运行平台模型。将展示如何从Python和C++运行推理。 打包和推断接口还具有全面的文档字符串,并提供了API的更详细用法。 打包一个模型 包装模型的第一步是定义一个“问题” ...
分类:
其他好文 时间:
2020-06-13 11:19:27
阅读次数:
52
#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #include<cmath> #include<map> #include<vector> #include<queue> #include<set> ...
分类:
其他好文 时间:
2020-06-12 21:47:06
阅读次数:
66
sudo apt-get install simplescreenrecorder 简单好用。录完体积小 https://www.maartenbaert.be/simplescreenrecorder/#download ...
分类:
系统相关 时间:
2020-06-12 20:15:12
阅读次数:
108
Docker For Windows | Setting Up Docker On Windows 7 / 11 Blog from Docker If you’re looking for simple and painless software deployment, Docker is the ...
我罗斯方块最终篇(Player类、Game类) | 项目GitHub地址 | 我负责的部分 player类的完成 game类的完成 player类的调试 game类的调试 代码要点 Player类 玩家地图map 碰撞检测: bool Player::detectCollision(Block bl ...
分类:
其他好文 时间:
2020-06-11 22:00:48
阅读次数:
60