上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: #!/bin/bash tput civis while [ 1 ] do tput clear # tput cup 10 20 info=$(date "+%Y-%m-%d %H:%M:%S %A") LEN=`echo $info | wc -c` COLS=`tput cols` let HOLD_COL=$COLS-$LEN ... 阅读全文
posted @ 2018-08-14 11:10 RainingInMacondo 阅读(196) 评论(0) 推荐(0) 编辑
摘要: numpy基础 定义array array基本运算 卷积运算 random常用操作 array索引 迭代array 合并array 分割array Numpy.copy() Numpy其他 numpy参考:http://pda.readthedocs.io/en/latest/chp4.html P 阅读全文
posted @ 2018-08-12 13:29 RainingInMacondo 阅读(931) 评论(0) 推荐(0) 编辑
摘要: 简单移动平均(sma) def moving_average(f_t): if type(f_t) is not np.ndarray: raise TypeError\ ('Expected one dimensional numpy array.') if f_t.shape[1] != 1: 阅读全文
posted @ 2018-08-05 21:36 RainingInMacondo 阅读(887) 评论(0) 推荐(0) 编辑
摘要: Z-score Modified Z-score IQR(interquartile range) Conclusion 摘自:http://colingorrie.github.io/outlier-detection.html 阅读全文
posted @ 2018-08-01 21:23 RainingInMacondo 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 简单的生产者消费者模型 yield表达式示例 阅读全文
posted @ 2018-07-25 10:34 RainingInMacondo 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 404页面,倒计时自动跳转指定页面 403页面文字水平垂直居中 阅读全文
posted @ 2018-07-24 11:51 RainingInMacondo 阅读(2743) 评论(0) 推荐(0) 编辑
摘要: Question 有如下一个字典,内嵌多维列表: 请把所有以 'hit' 开头的key所对应的list按顺序求和,示例结果:{ 'hit':[[9, 39, 69], [12, 42, 72]] } Answer 阅读全文
posted @ 2018-07-23 11:18 RainingInMacondo 阅读(321) 评论(0) 推荐(0) 编辑
摘要: free介绍 free示例 字段解释 buffers和cached是干啥用的? cached是cpu与内存间的,buffer是内存与磁盘间的,都是为了解决速度不对等的问题。 buffer是即将要被写入磁盘的,而cache是被从磁盘中读出来的。 - 缓存(cached)是把读取过的数据保存起来,重新读 阅读全文
posted @ 2018-07-22 12:52 RainingInMacondo 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 日志配置 注意:logger.setLevel 和 handler.setLevel 是不一样的。 给日志每个字段加上双引号,方便后面结合awk进行统计分析 项目里的应用 定义 使用 阅读全文
posted @ 2018-07-13 16:37 RainingInMacondo 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Docker镜像制作 方式一:手动运行一个容器,做好所有配置,然后把容器提交成一个镜像 方式二:使用DockerFile 示例1:做一个yum安装的nginx镜像 示例2:编写DockerFile构建yum安装的nginx镜像 示例3:编写DockerFile构建编译安装nginx的镜像 验证结果 阅读全文
posted @ 2018-07-10 00:41 RainingInMacondo 阅读(6212) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页