显示历史(执行过的)命令。 history [n] history -c history -d offset history -anrw [filename] history -p arg [arg ...] history -s arg [arg ...] 不带任何参数显示所有执行过的命令。一个命 ...
分类:
系统相关 时间:
2019-03-27 19:40:30
阅读次数:
213
1. 插件必须渲染好, 2. 可以通过context.size获取当前控件的尺寸和位置offset信息 ...
分类:
其他好文 时间:
2019-03-26 13:15:18
阅读次数:
1579
什么是Makefile?首先,make是一个工具程序(Utility software),是一种控制编译或者重复编译软件的工具;make可以自动管理软件编译的内容、方式和时机从而使程序员能够把精力集中在编写代码上。那make怎样工作呢?其实make是通过makefile文件实现的。makefile是 ...
分类:
系统相关 时间:
2019-03-23 22:29:15
阅读次数:
253
isElementInViewport (el, offset = 0) { const box = el.getBoundingClientRect(), top = (box.top >= 0), left = (box.left >= 0), bottom = (box.bottom <= ( ...
分类:
其他好文 时间:
2019-03-23 15:51:02
阅读次数:
209
基本语法:1)SETBITredis 127.0.0.1:6379> setbit KEY_NAME OFFSET VALUE //该命令用于对 key 所储存的字符串值,设置或清除指定偏移量上的位(bit)。时间复杂度O(1) 1 在redis中,存储的字符串都是以二进制的形式存在的。比如:设置一 ...
分类:
其他好文 时间:
2019-03-23 13:08:39
阅读次数:
158
#include<memory>#include<iostream>#include<utility>#include<string.h>#include<stdlib.h>using namespace std;class Widget{public: Widget(){ cout << "Wid ...
分类:
其他好文 时间:
2019-03-20 22:08:00
阅读次数:
277
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>五子棋</title> 6 <link rel="stylesheet" href="css/style.css" /> 7 </head> 8 <body ...
分类:
Web程序 时间:
2019-03-19 17:05:08
阅读次数:
156
浏览器渲染一个页面有两条线程:一条是渲染js脚本,一条是渲染css脚本。但是两条线程是互斥的。 回流:当render tree的一部分或者全部元素因改变了自身的宽高,布局,显示或隐藏,或元素内部的文字结构发生变化,导致需要重新构建页面的时候,回流就产生了。 重绘:当一个元素自身的宽高,布局,及显示或 ...
分类:
其他好文 时间:
2019-03-18 11:40:00
阅读次数:
921
第一种方法使用索引 一般不使用,不记录 第二种方法使用注解 接口 List<Shop> getShopListByPageAno(@Param(value = "offset") int offset, @Param(value = "pagesize") int pagesize); List<S ...
分类:
其他好文 时间:
2019-03-16 19:21:27
阅读次数:
173
下图为c盘(活动分区)。上方base offset为相对于整个硬盘的字节偏移量。partition 1中信息包括c盘开始扇区,总扇区数。partition 2 信息为扩展分区开始扇区和扇区数。由 P1 P2课计算整个硬盘大小。 下图为partition 2. 3CB859C00即为上图3183483 ...