码迷,mamicode.com
首页 >  
搜索关键字:vim find    ( 39587个结果
LeetCode - Best Time to Buy and Sell 3
这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an algorithm to find the maximum profit. You may complete at most two transactions. 3 * @pa...
分类:其他好文   时间:2014-07-22 23:01:13    阅读次数:251
vim配色方案
想更换vim配色方案,需要修改两个文件:第一个修改是在 /user/share/vim/vim73/colors 添加xxx.vim文件;//路径里面有些不是vim73,是vim70或其他第二个修改是在 .vimrc文件中添加一句colorscheme xxx配色方案分两个来源,一是vim自带,二是...
分类:其他好文   时间:2014-07-22 23:01:13    阅读次数:376
/bin/bash^M: bad interpreter: 没有那个文件或目录
运行脚本时出现了这样一个错误,打开之后并没有找到所谓的^M,查了之后才知道原来是文件格式的问题,也就是linux和windows之间的不完全兼容。。。具体细节不管,如果验证:vim test.sh:set ff?如果出现fileforma=dos那么就基本可以确定是这个问题了。:set filefo...
分类:其他好文   时间:2014-07-22 23:00:13    阅读次数:243
jquery.validate自定义验证--成功提示与择要提示
1. 自定义验证--成功提示 1) 添加选项 errorClass: "unchecked", validClass: "checked", errorElement: "span", errorPlacement: function (error, element) { if (element.parent().find("span[for=""" + element.attr("id...
分类:Web程序   时间:2014-05-02 18:38:21    阅读次数:467
LeetCode - Trangle
这道题,采用动态规划算法。from top to down,把到每个节点的最小路径和都求出来。下面是AC代码: 1 /** 2 * Given a triangle, find the minimum path sum from top to bottom. 3 * Each ...
分类:其他好文   时间:2014-05-02 12:19:23    阅读次数:382
如何查找linux系统安装了多少perl模块
join函数利用字符将数组中的元素分割开.[root@localhost~]#find`perl-e‘@array=join("","@INC");print"@array";‘`-name*.pm|wc-l547这个例子是利用空格分开了要查找的路径,然后find可以查找所有的路径下匹配*.pm的文件,我一共查到了547个模块.
分类:系统相关   时间:2014-05-02 04:13:56    阅读次数:311
is not in the sudoers file解决方法
用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。 下面是修改方法:1)进入超级用户模式。也...
分类:其他好文   时间:2014-05-01 22:46:43    阅读次数:465
Requirement-Driven Linux Shell Programming
Requirement-Driven Linux Shell ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where can I find the basic Material about Linu...
分类:系统相关   时间:2014-05-01 20:40:05    阅读次数:678
LeetCode5:Longest Palindromic Substring
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo...
分类:其他好文   时间:2014-05-01 20:07:13    阅读次数:429
15个实用的Linux find命令示例
妈咪,我找到了! -- 15个实用的Linux find命令示例http://www.oschina.net/translate/15-practical-linux-find-command-examples?p=2#comments爹地,我找到了! -- 15个极好的Linux find命令示例...
分类:系统相关   时间:2014-05-01 19:41:30    阅读次数:429
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!