上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页
摘要: 首先是一部分概念和示例,这部分转自:http://coolshell.cn/articles/9104.htmlPattern Space第零个是关于-n参数的,大家也许没看懂,没关系,我们来看一下sed处理文本的伪代码,并了解一下Pattern Space的概念:foreach line in f... 阅读全文
posted @ 2015-09-09 00:22 丶Blank 阅读(808) 评论(0) 推荐(0) 编辑
摘要: ctrl+a //移到行首ctrl+e //移到行尾ctrl+y // 插入最近删除的单词或语句ctrl+k //删除光标处到行尾部分ctrl+u //删除光标处到行首部分ctrl+w //删除光标处到当前单词开头部分或语句ctrl+r //搜索命令历史纪录h 左,或 Backspace 或方向键j... 阅读全文
posted @ 2015-09-04 19:12 丶Blank 阅读(1672) 评论(0) 推荐(0) 编辑
摘要: 使用Solarized dark配色方案需要字体menlo for powerlineoh-my-zsh主题使用agnoster,这个主题默认的路径是全路径,当路径很长的时候,就会占很长的空间,可以修改agnoster.zsh-theme中的方法prompt_dir()prompt_dir() { ... 阅读全文
posted @ 2015-09-04 14:16 丶Blank 阅读(436) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbersnums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements t... 阅读全文
posted @ 2015-08-18 23:45 丶Blank 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: Implement a trie withinsert,search, andstartsWithmethods.Note:You may assume that all inputs are consist of lowercase lettersa-z.实现一个字典树。好久不做题,没感觉啊,Tr... 阅读全文
posted @ 2015-07-27 18:09 丶Blank 阅读(160) 评论(0) 推荐(0) 编辑
摘要: There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to firs... 阅读全文
posted @ 2015-07-27 13:32 丶Blank 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 复制多行:v 可视化,选择多行,然后yy复制。 阅读全文
posted @ 2015-07-22 21:24 丶Blank 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 转载自http://blog.chinaunix.net/uid-22891521-id-2109310.html由于一直以来在一个很old的linux版本下搞开发,里面的vim固然也是一个很old的版本,今天在工作完成的情况下,升级了下vim。不过在升级之前请保证你的os 之中安装了 ctags ... 阅读全文
posted @ 2015-07-22 21:07 丶Blank 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 网上有不少升级CentOS内核的文章,如《CentOS 6.5 升级内核到 3.10.28》,大部分都是下载源码编译,有点麻烦。在yum的ELRepo源中,有mainline(3.13.1)、long-term(3.10.28)这2个内核版本,考虑到long-term更稳定,会长期更新,所以选择这个... 阅读全文
posted @ 2015-07-16 18:08 丶Blank 阅读(388) 评论(0) 推荐(0) 编辑
摘要: Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ... 阅读全文
posted @ 2015-06-30 14:14 丶Blank 阅读(183) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页