码迷,mamicode.com
首页 >  
搜索关键字:vim find    ( 39587个结果
windows平台是上的sublime编辑远程linux平台上的文件
sublime是个跨平台的强大的代码编辑工具,不多说。 想使用sublime完成linux平台下django站点的代码编辑工作以提高效率(原来使用linux下的vim效率较低,适合编辑一些小脚本)。 下载linux平台下的Sublime_Text_2.0.2_x64.tar.bz2(http://www.sublimetext.com/) 解压使用: tar -xjvf Subli...
分类:Windows程序   时间:2014-06-03 04:00:11    阅读次数:393
mysql常见问题
1. mysql忘记密码 vim /etc/my.conf 文件在mysqld下添加skip-grant-tables,表示mysql在登录的时候不检查权限。登录mysql。直接运行mysql> use mysql; > update user set Password=password('root') where User='root' > flush privileges; > qu...
分类:数据库   时间:2014-06-03 02:24:16    阅读次数:283
LeetCode: Word Search [079]
【题目】 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be use...
分类:其他好文   时间:2014-06-03 01:07:58    阅读次数:329
解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https”      解决方法:      编辑.git目录下的config文件即可。 vim .git/config #修改对于的配置 #原来的url = https://github.com/elitecodegr...
分类:数据库   时间:2014-06-03 00:03:44    阅读次数:349
leetcode -day24 Maximum Depth of Binary Tree & Binary Tree Zigzag Level Order Traversal
1、Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. clas...
分类:其他好文   时间:2014-06-02 23:13:22    阅读次数:290
LeetCode: Maximal Rectangle [085]
【题目】 Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 【题意】 给定一个由0和1填充的二维矩阵,找一个全是1的最大矩形 【思路】 扫描二维矩阵,凡是扫到值为1的块时候,以当前块为矩形的左上角区块拓展,找最大矩阵。 先找出以每个“1”区块为左上角区块的最大矩形,然后求出最大全局的最大矩...
分类:其他好文   时间:2014-06-02 23:08:07    阅读次数:289
分享一下个人的Vim配置文件
强烈拥护开源精神,高举开源大旗,今天我就分享下我自己结合网上还有自己实际使用配的vimrc,可以给各位参考下,不要见笑哈,具体说明我在rc里写的也很详细,可以具体看下,也希望可以借这个机会能多认识认识几个Vimer们     "======================================== " File Name: .vimrc " Author: Jin Yuqi " Ema...
分类:其他好文   时间:2014-06-01 10:58:10    阅读次数:308
LeetCode: Largest Rectangle in Histogram [084]
【题目】 Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3]. The...
分类:其他好文   时间:2014-06-01 10:46:29    阅读次数:242
vim打开文档出现的^M是什么
我查找了^M没效果,应该是特殊的控制字符,查找换行符结果不是,在每一行的末尾不是换行就是回车吧,对于不同的系统对按行的编码定义不一样。 linux中用\n 0x0a mac 中用\r 0x0d win 中用\r\n 0x0d0a 这里的问题可能是回车符,于是查找回车符成功。 去掉方法:现在已经明白了,是由于0x0d0a组成的换行,把0d去掉即可。...
分类:其他好文   时间:2014-06-01 09:40:27    阅读次数:251
projecteuler---->problem=10----Summation of primes
title: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 翻译: 10以下的质数的和为2 + 3 + 5 + 7 = 17。 请求出200,0000以下所有质数的和。 import math,time d...
分类:其他好文   时间:2014-06-01 09:12:31    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!