首先申明下,此Hugo非彼Hugo(Hugo是由Go语言实现的静态网站生成器)。本文主要介绍几种比较 nice 的插件和工具,有利于改善代码质量及效率提高。 ...
分类:
移动开发 时间:
2017-05-18 11:27:52
阅读次数:
297
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:
其他好文 时间:
2017-05-16 21:36:00
阅读次数:
186
iconv,enconv,enca,convmv,unix2dos,dos2unix文件格式转换,od/cut/wc/dd/diff/uniq/nice/du等命令【Linux常用工具】1.1diff命令的三种格式摘要:1.在Vim中查看文件编码
:setfileencoding
即可显示文件编码格式。
如果你只是想查看其它编码格式的文件或者想解决用Vim查看文件乱..
分类:
其他好文 时间:
2017-05-16 15:03:21
阅读次数:
377
propos word 显示和word相关的命令 which command 显示命令的完整路径名 time command 计算命令运行的时间 time cat 开始计时. Ctrl-d停止。nice info 运行一个低优先级命令(这里是info) renice 19 -p $$ 使脚本运行于低 ...
分类:
系统相关 时间:
2017-05-16 11:12:08
阅读次数:
377
#!/usr/bin/pythonimportpsutilimportjsonimporttimedefitem_disk():returndict(zip([‘total‘,‘used‘,‘free‘,‘percent‘],psutil.disk_usage(‘/‘)))defitem_cpu():returndict(zip([‘user‘,‘system‘,‘nice‘,‘idle‘],psutil.cpu_times()))defitem_mem():returndict(zip([‘total‘,‘..
分类:
Web程序 时间:
2017-05-10 17:50:05
阅读次数:
228
一开始入c++的时候成天跑cin,cout 直到有一天用cin,cout超时 才知道scanf比cin快的多 但是后来又听说加了ios::sync_with_stdio(false);的cin跟飞一样 那么到底哪个快呢? 咱们来做个小测试 题目选择:https://www.luogu.org/pro ...
分类:
其他好文 时间:
2017-05-08 21:56:38
阅读次数:
391
Linux採用两种不同的优先级范围,一种是nice值。还有一种是实时优先级。 1.nice值 nice值得范围是-20~19,默认值是0。越大的nice值意味着更低的优先级。也就是说nice值为-20的优先级最高。 2.实时优先级 实时优先级的范围是0~99。其值得意义与nice值相反。即:越高的实 ...
分类:
系统相关 时间:
2017-05-08 16:01:59
阅读次数:
248
该题是用回溯法来解决的题: 题目: Seeding Time Limit: 2 Seconds Memory Limit: 65536 KB It is spring time and farmers have to plant seeds in the field. Tom has a nice ...
分类:
编程语言 时间:
2017-05-06 16:33:55
阅读次数:
165
第十六章 shell脚本介绍 此章节内容较为简单,跳过。 第十七章 条件測试 test命令 expr命令 test 格式 test condition 或者 [ condition ] (注意: condition两側有空格) 文件状态測试: - d 文件夹 。 - s 文件长度大于0、非空 ; - ...
分类:
系统相关 时间:
2017-05-06 14:10:38
阅读次数:
202