import java.util.ArrayList;import
java.util.Arrays;import java.util.List;import java.util.regex.Pattern;/** * *
在线性时间内抽取主题类(新闻、博客等)网页的正文。 采用了基于行块分布函数....
分类:
其他好文 时间:
2014-06-29 07:45:25
阅读次数:
283
Facade设计模式主要作用是因为有个很难使用的类,然后要设计一个新类,整理好这个类,使得其更好使用。
比如有类如此:
class MessyClass
{
char *name;
public:
MessyClass() : name(new char[3])
{
for (int i = 0; i < 3; i++)
{
name[i] = ' ';
}
}
...
分类:
其他好文 时间:
2014-06-20 13:11:10
阅读次数:
232
单件模式(singleton pattern) 详解本文地址: http://blog.csdn.net/caroline_wendy/article/details/28595349 单件模式(singleton pattern) : 确保一个类只有一个实例, 并提供一个全局访问点.单价模式包括3个部分: 私有构造器, 静态变量, 静态方法.具体方法:1. 标准的单例模式:/**
* @time 2014.6.5
*/
package sin...
分类:
其他好文 时间:
2014-06-20 10:02:42
阅读次数:
328
进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n
filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern
filename:打开文件,并将光标置于第一...
分类:
系统相关 时间:
2014-06-20 08:46:49
阅读次数:
406
Man pagesystemd.unitSYSTEMD.UNIT(5)
systemd.unit SYSTEMD.UNIT(5)NAME systemd.unit - Unit configurationSYNOPSIS...
分类:
其他好文 时间:
2014-06-12 00:46:24
阅读次数:
478
http://unicode.org/reports/tr35/tr35-6.html#Date_Format_PatternsAppendix F:Date
Format PatternsA date pattern is a string of characters, where specifi...
分类:
其他好文 时间:
2014-06-11 23:37:19
阅读次数:
499
This how-to will explain how to download rpm
packages from a yum repository without installing them. This will work on Redhat
Enterprise Linux 5.x, Fe...
分类:
其他好文 时间:
2014-06-11 22:07:34
阅读次数:
406
定制pattern的string模板(template) 详解本文地址: http://blog.csdn.net/caroline_wendy/article/details/28625179 string.Template的pattern是一个正则表达式, 可以通过覆盖pattern属性, 定义新的正则表达式.如: 使用新的定界符"{{", 把{{var}}作为变量语法.代码:# -*- coding: utf-8 -*-
'''
Creat...
分类:
编程语言 时间:
2014-06-08 18:00:47
阅读次数:
308
【题目】
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extra space.
For example,
Given the following binary tre...
分类:
其他好文 时间:
2014-06-08 15:46:22
阅读次数:
303
A JSP page exists in three forms:JSP source
code:consists of a mix of HTML template code.Java language statements.JSP
directives and actions that desc...
分类:
Web程序 时间:
2014-06-08 00:18:41
阅读次数:
523