1. timer模块中有函数tc(), 用于度量函数执行所消耗的时间, tc/1, tc/2的相关源码如下: tc(F) -> Before = os:timestamp(), Val = F(), After = os:timestamp(), {now_diff(After, Before),
分类:
其他好文 时间:
2016-03-09 12:53:35
阅读次数:
112
Linux文件比较指令有两个,comm和diff,其中comm要求的是排序过得文件。Diff则没有这个要求,diff的输出结果主要是用来表明文件一经过怎样的修改可以得到文件二。CommComm的语法如下: Comm的选项如下: 通过上面的三个选项的组合可以衍生出很多选项,如下: 注意:comm需要的...
分类:
系统相关 时间:
2016-03-08 21:06:35
阅读次数:
142
===================================================================== diff ===================================================================== git d
分类:
其他好文 时间:
2016-03-06 19:09:04
阅读次数:
136
回到寝室,第一件事情便是想查一下杨老师课上说的“diff”程序。百度了一下,谈到最多的是linux中的diff命令,于是换个关键词,diff工具,发现diffmerge,P4merge,kdiff,TextDiff等等。以上工具都是将两个文档提交到程序中,程序返回比较后的结果,和我想象中的不一样。
分类:
其他好文 时间:
2016-03-05 01:39:04
阅读次数:
316
手册地址:http://php.net/manual/en/dateinterval.format.php 1 $january = new DateTime('2010-01-01'); 2 $february = new DateTime('2010-02-01'); 3 $interval =
分类:
Web程序 时间:
2016-03-03 21:14:00
阅读次数:
288
学习git过程中整理的笔记:git add 添加文件到暂存区; git commit -m "更改说明" 提交文件更改; git status 查看当前文件状态; git diff 详细查看文件修改的内容; 版本退回 git reset --hard 版本号commit_id; HEAD指向的是当前
分类:
其他好文 时间:
2016-03-02 23:51:56
阅读次数:
167
Docker一.docker常用命令容器生命周期管理—docker[run|start|stop|restart|kill|rm|pause|unpause]容器操作运维—docker[ps|inspect|top|attach|events|logs|wait|export|port]容器rootfs命令—docker[commit|cp|diff]镜像仓库—docker[login|pull|push|search]本地镜像管理..
分类:
其他好文 时间:
2016-03-01 16:03:11
阅读次数:
445
打补丁patch 命令使用 http://www.cnblogs.com/huanghuang/archive/2011/07/14/2106402.html patch 命令用于打补丁,补丁文件是使用diff产生的patch 命令语法 patch [ -b [ -B Prefix ] ] [ -f
分类:
其他好文 时间:
2016-02-26 18:57:35
阅读次数:
149
git学习笔记 @(python) git 命令这是git常用命令 init 建立git仓库 add 把文件添加到仓库 commit 把文件提交到仓库,将暂存区中的文件提交到master中 status 掌握仓库的状态,看到更改的,有没有提交 diff =differents变化 log 查看历史记
分类:
其他好文 时间:
2016-02-26 06:55:51
阅读次数:
260
在PHP中,使用 array_intersect 求两个数组的交集比使用 array_diff 求同样两个数组的并集要快。 如果要求数组 $a 与数组 $b 的差集的个数,应该使用 count($a) - count(array_intersect($a, $b)),而不要用 count(array
分类:
Web程序 时间:
2016-02-19 20:37:33
阅读次数:
1164