2013-06-06 Zhang zhengzheng
keyup和keydown事件以及keyCode和which属性 我想关于键盘事件最常见的实例就是回车提交表单了,恐怕每个前端都有一段烂熟于胸的代码用来实现这个功能。以前我也只是做了这样一个功能,也许它的代码是这样的: function enter (p_event) { var _keyCode = p_event.which ? p_event.which : p_event.keyCode; var _ENTER_CODE = 13; if (_ENTER_CODE === _keyCode) { //enter code... } } 如果需要兼容ie8及以下,那还需要这几 继续阅读 »
2014-05-31 Kun Ren
Gitbook is rather a relatively new concept on the web. It provides a user-friendly framework for authors to write and produce online books with beautiful illustrations and responsive interactions. It allows authors to write in Markdown syntax, which is very easy to learn and use, so that they can focus more on the cont 继续阅读 »
2017-03-06 Klaus Ma
Creat second disk for k8s In Vagrantfile, add the following customized command to create disk for k8s source code. The vagrant/virtual box will create a disk with only 10Gi by default, which is not enough for k8s's build & test. 继续阅读 »
2014-09-22 Kun Ren
Twelve days after the initial commit, pipeR tutorial is released! If you want to write R code fluently and process data elegantly, I strongly recommend that you read this tutorial which is designed to serve as a complete guide to pipeR package, including how it works with dplyr, rlist, and rvest with vivid examples. 继续阅读 »
2016-03-04 asin929
摘要:这是对linux下查找文件及字符串的总结。 more 一、查找命令 which (寻找『运行档』) 继续阅读 »
2016-06-16 YongHao Hu
C++
160. Intersection of Two Linked Lists Question Write a program to find the node at which the intersection of two singly linked lists begins. 继续阅读 »
2014-03-15 Kun Ren
In R, function may not be as special as it is in other programming languages; it is regarded as one of the many types and can be passed as an argument to some other function. The way we deal with other objects such list and data.frame definitely applies to function. Here is a simple example in which we define two funct 继续阅读 »
2014-04-05 Kun Ren
As we know, a Brownian motion is usually formulated as $$dx_t = \mu\,dt+\sigma\,dW_t$$ which is the continuous case of a random walk. In some cases, it is quite convenient to use this formulation to describe the characteristic of asset prices due to its highly unpredictable behavior. 继续阅读 »
2015-12-30 litaotao
1. Pythonic Thinking 1.1 know which version of python you're using two major python version; multiple popular runtimes for python: cpython, jython, ironpython, pypy, etc; be sure that the command line for running python on your system is the version you want; prefer python 3 in your next project; 继续阅读 »
2017-05-31 Lu Huang
There is a book about Deep Learning, http://www.deeplearningbook.org/, which is wrote by Ian Goodfellow, Yoshua Bengio and Aaron Courville. 继续阅读 »