grep 命令是一个很常用的命令,主要的用法如下:
格式: grep [options]
^ 锚定行的开始
eg;
jiangjian@jiangjian-K42JZ:~/sh$ grep '^data' data2
data11,data12,data13
data21,data22,data23
data31,data32,data33
jiangjian@jiang...
分类:
其他好文 时间:
2014-05-15 01:43:05
阅读次数:
329
Single Number II
Total Accepted: 14472 Total
Submissions: 44420My Submissions
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Y...
分类:
其他好文 时间:
2014-05-15 01:23:42
阅读次数:
273
[ 问题: ]
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-05-15 00:04:39
阅读次数:
377
鸽巢原理: n+1个鸽子放入n个窝中,至少有一个窝含有两只鸽子 Find a
multipleTime Limit:1000MSMemory Limit:65536KTotal
Submissions:5590Accepted:2434Special JudgeDes...
分类:
其他好文 时间:
2014-05-14 23:00:02
阅读次数:
375
转自(略改动):http://www.cnblogs.com/xFreedom/archive/2011/05/16/2048037.html更全面新颖的说明见:http://www.cplusplus.com/reference/string/string/
说明: 1、size_t 是个uns....
分类:
编程语言 时间:
2014-05-14 22:47:47
阅读次数:
453
linux命令行环境linux常用命令用法,软件的安装,vim的用法,在特定的linux版本安装了epel源,学会用SSH配置公钥、私钥,通过SSH来远程登录linux主机,如在windows下用putty来远程登录linux主机。版本控制工具svn/git,git可以和gitlab配合使用。C/C...
分类:
其他好文 时间:
2014-05-14 22:42:30
阅读次数:
552
HOWTO Use Python in the web — Python v3.0.1
documentationmod_python?People coming from PHP often find it hard to grasp how
to use Python in the web. T...
分类:
编程语言 时间:
2014-05-14 22:31:33
阅读次数:
401
java中用于解释json的主流工具有org.json、json-lib与gson,本文介绍org.json的应用。
官方文档:
http://www.json.org/java/
http://developer.android.com/reference/org/json/package-summary.html
1、主要类
Classes
JSO...
分类:
Web程序 时间:
2014-05-14 20:46:28
阅读次数:
484
//通过结构体/类的类型来作为模板参数的tag,
//用来区分tag之间的区别。
//made by davidsu33
//例如对于某个全局的静态变量,你如果希望有
//很多份,但是其实现又是一样的,你可以考虑
//以模板的形式,通过类tag来区分
//而且还可以根据实际需要来特化模板
#include "stdafx.h"
#include
#include
using nam...
分类:
其他好文 时间:
2014-05-14 19:33:42
阅读次数:
234