码迷,mamicode.com
首页 >  
搜索关键字:vim find bash 文件系统    ( 67398个结果
[Leetcode] Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2014-07-22 23:16:14    阅读次数:408
【转】vim格式化C代码
转自:http://blog.chinaunix.net/uid-24774106-id-3396220.html在自己的目录下编辑自己的.vimrc,vim ~/.vimrc添加下面的几行:: filetype indent onset etset ciset shiftwidth=4autocm...
分类:其他好文   时间:2014-04-30 18:26:50    阅读次数:526
PageObject
1.目的:为了将元素的find方法和业务逻辑分开来。如果元素的页面位置发生了变化,只需改动一个文件,而不影响业务的实现。2.原理:一般一个页面对应一个class,在class里描述所有要用到的webelement。通过PageFactory.initWebElement(Webdriver d,th...
分类:其他好文   时间:2014-04-30 17:58:23    阅读次数:337
Nginx使用(配置开机启动)
环境: 系统:CentOS 6.5 Final 安装目录:/usr/local/nginxNginx开机自启:①编写shell实现控制vi /etc/init.d/nginx添加内容:#!/bin/bash# nginx Startup script for the Nginx HTTP Ser.....
分类:其他好文   时间:2014-04-30 16:34:10    阅读次数:582
对rsync进行封装的shell脚本
抓取#!/bin/bash. push.sh# 错误处理:尝试查找备份文件function onError(){ local errFile="err" local serverInfo=($1 $2 $3) # ip username password l...
分类:其他好文   时间:2014-04-30 16:23:25    阅读次数:449
解决 Ubuntu 开机 Waiting for 60 seconds more for network configuration
sudo vim /etc/network/interfaces, 将该文件的内容修改为如下:(也就是说删掉其他的什么auto eth0、auto wlan0)auto loiface lo inet loopback
分类:Web程序   时间:2014-04-30 15:50:31    阅读次数:474
Hadoop的文件读写操作流程
以下主要讲解了Hadoop的文件读写操作流程:读文件 读文件时内部工作机制参看下图: 客户端通过调用FileSystem对象(对应于HDFS文件系统,调用DistributedFileSystem对象)的open()方法来打开文件(也即图中的第一步),DistributedFileSystem通.....
分类:其他好文   时间:2014-04-30 13:39:04    阅读次数:375
【HDOJ】3560 Graph’s Cycle Component
并查集的路径压缩。 1 #include 2 #include 3 4 #define MAXNUM 100005 5 6 int deg[MAXNUM], bin[MAXNUM]; 7 char isCycle[MAXNUM]; 8 9 int find(int x) {10 i...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
six solutions to a single symmetrical problem
Problem description:given a string, find the longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start and end of the substring...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
VC6微软正则表达式greta使用案例
#include#include"regexpr2.h"usingnamespacestd;usingnamespaceregex;//greta库的命名空间//若链接出错,设置MFC静态链接//查找匹配串//返回结果匹配串(CStringArray数组指针类型)CStringArray*Find(...
分类:其他好文   时间:2014-04-29 17:15:48    阅读次数:363
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!