摘要:shell 命令行下不少键盘操作跟 Emacs 是类似的,可能不能说是从 Emacs 借鉴过来的,这些快捷的使用,谁早谁晚还不好考证,不过思路是一致的。之前某次突然来劲试了 C-a C-e 等,刚搜索并实践了若干操作,在 SecureCRT 登录 suse 的环境验证了,整理如下(不一定是所有 shell 都支持):(注意下面的”前”都是指”左”或”上”,”后”是”右”或”下”)C-r 查找历史执行命令,很便捷的调用历史命令的方式,输入历史命令关键字,就会及时显示匹配命令,enter 即可执行C-p 前一条指令C-n 后一条指令C-c 终止已经运行的命令(针对还没有运行完的命令和脚本,实际为向
阅读全文
摘要:Problem 1 : Is it a loop ? (判断链表是否有环?)Assume that wehave a head pointer to a link-list. Also assumethat we know the list is single-linked. Can you come up an algorithm to checkwhether this link list includes a loop by using O(n) time and O(1) space wheren is the length of the list? Furthermore, can
阅读全文
摘要:机器学习http://www.cnblogs.com/zhangchaoyang/archive/2012/08/28/2660929.htmlhttp://blog.csdn.net/cuoqu/article/category/1411617/2
阅读全文
摘要:cocos2dx版本低于2.2时:安装使用方法:http://hi.baidu.com/waitmessage/item/a93fafb8e7fbf4f463388e531.下载最新版的cocos2d-x。打开浏览器,输入cocos2d-x.org,然后选择Download,本教程写作时最新版本为cocos2d-1.01-x-0.9.1,具体下载位置如下图:2.下载完之后,解压到当前文件夹。我把下载的程序放在F盘根目录,解压完毕之后,双击打开文件夹,看看里面有什么东西,红圈部分就是我们要安装使用的文件:3接下来,我们正式安装cocos2d-x到windows中去。首先,双击上图中的cocos2
阅读全文