redis安装 ubuntu: apt-get install redis-server redis服务 :redis-server 启动客户端 :redis-cli redis简单知识初步: 0.redis 文档 :http://doc.redisfans.com/ 1.redis为单进程2.re ...
分类:
其他好文 时间:
2018-01-30 19:39:41
阅读次数:
149
用 O(1) 时间检测整数 n 是否是 2 的幂次。 样例 n=4,返回 true; n=5,返回 false. 挑战 O(1) time class Solution { public: /* * @param n: An integer * @return: True or false */ b ...
分类:
其他好文 时间:
2018-01-28 21:54:00
阅读次数:
202
《基于qml创建最简单的图像处理程序》系列课程及配套代码基于qml创建最简单的图像处理程序(1)-基于qml创建界面http://www.cnblogs.com/jsxyhelu/p/8343310.html课程1附件https://files.cnblogs.com/files/jsxyhelu/ ...
分类:
其他好文 时间:
2018-01-26 22:58:29
阅读次数:
578
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisPool; import redis.clients.... ...
分类:
编程语言 时间:
2018-01-24 19:46:57
阅读次数:
252
分析hardware/akm/AK8975_FS 大致有4类文件,有着不同的分工 1:hardware\akm\ak8975_fs\libsensors\Sensors.cpp hal中一般支持多类设备,起框架作用,主要关注poll方法 2:AkmSensor.cpp 具体sensor的驱动代码 3 ...
分类:
其他好文 时间:
2018-01-24 18:04:30
阅读次数:
330
要想printf()和scanf() 函数工作,我们需要把printf()和scanf() 重新定向到串口中。重定向是指用户可以自己重写C 的库函数,当连接器检查到用户编写了与C 库函数相同名字的函数时,优先采用用户编写的函数,这样用户就可以实现对库的修改了。为了实现重定向printf()和scan ...
分类:
其他好文 时间:
2018-01-24 14:01:37
阅读次数:
524
1 reverse words in a string Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". ...
分类:
其他好文 时间:
2018-01-20 22:49:56
阅读次数:
190
It was about time I shared my Nike LeBron 15 Performance Review, so here are my thoughts. 15 years is a career in professional sports — unless you are ...
分类:
其他好文 时间:
2018-01-20 12:34:16
阅读次数:
165
(一)、uart / usart 要注意的 API使用方法。 1.__HAL_UART_GET_FLAG 是获取 SR 寄存器标志位状态 2.__HAL_UART_CLEAR_FLAG 是清除 SR 寄存器标志位状态 3.__HAL_UART_CLEAR_xxFLAG ,xx为PE FE NE OR ...
分类:
其他好文 时间:
2018-01-19 14:08:15
阅读次数:
346