eg:把当前系统使用率最高的前10个命令的命令名输出,并统计命令使用的次数。awk‘{comm[$1]++}END{for(iincomm){printi,comm[i]}}‘/root/.bash_history|sort-rnk2|head或者awk‘{print$1}‘/root/.bash_history|sort|uniq-c|sort-nr|head
分类:
其他好文 时间:
2016-01-05 11:03:22
阅读次数:
153
1. Javascript 返回上一页history.go(-1), 返回两个页面: history.go(-2);2. history.back().3. window.history.forward()返回下一页4. window.history.go(返回第几页,也可以使用访问过的URL)例:...
分类:
Web程序 时间:
2016-01-05 00:09:55
阅读次数:
259
1.改变页面标题的内容有时候我们开发 h5页面的时候需要动态的去更新title 的名字,这个时候使用 document.titile='修改后的名字';就可以解决我们的问题。或者使用 //当前firefox对 title 参数不支持
history.pushstate(state,title,url);这种方法不仅能够修改 title 而且能够修改 url 的值,并且将这些信息存...
分类:
移动开发 时间:
2016-01-04 18:17:49
阅读次数:
340
写在前边:OpenCV3.0+要想使用MHI,就要现安装扩展模块opencv_contrib。安装方法见:ubuntu 14.04 64位 安装Opencv3.1.0 (包含opencv_contrib模块)OpenCV2.4.11中samples/python2/motempl.py 就是使用mh...
分类:
其他好文 时间:
2015-12-31 12:50:21
阅读次数:
297
生成课表import java.util.Random;interface ClassType{ enum LIBERART implements ClassType{CHINESE, ENGLISH, HISTORY, GEOGRAPH} enum SCIENCE implements Class...
分类:
编程语言 时间:
2015-12-31 01:38:01
阅读次数:
201
DOM - Document Object Model,它是W3C国际组织的一套Web标准,它定义了访问HTML文档对象的一套属性,方法和事件。淘宝Window对象常用属性:status 指定浏览器状态栏中显示的临时消息screen 有关客户端的屏幕和显示性能的信息history 有关客户访问过的U...
分类:
编程语言 时间:
2015-12-30 19:45:12
阅读次数:
299
This past weekend I readJoe Armstrong’s paper on the history of Erlang. Now,HOPLpapers in general are like candy for me, and this one did not disappoi...
分类:
其他好文 时间:
2015-12-30 19:16:35
阅读次数:
189
相关文档:https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulatingthebrowser_history实现目标页面的跳转(前进后退,点击等)不重新请求页面页面URL与页面展现内容一致(符合人们对传统网页的认识)在不...
分类:
其他好文 时间:
2015-12-28 16:56:53
阅读次数:
129
html5 设置历史记录的两种方式:1.通过hash值的方式设置;2.通过history设置;具体如下两个demo: Document window.location.hash = xxx //设置hash值,window.onhashchange = function () {...
分类:
Web程序 时间:
2015-12-28 11:44:30
阅读次数:
173