爬虫&搜索 1、《开发自己的搜索引擎—Lucene+Heritrix(第2版)》??????? (Begin:2015/4/7? End:) Web技术 大数据 ? ? ? ? PS: 林语堂在《读书的艺术》中说: ????????? 那个没有养成读书...
分类:
其他好文 时间:
2015-04-07 20:21:47
阅读次数:
201
题目连接:https://leetcode.com/problems/remove-nth-node-from-end-of-list//** * Definition for singly-linked list. * struct ListNode { * int val; * ...
分类:
其他好文 时间:
2015-04-07 19:34:12
阅读次数:
95
def MaxSum(self,array,n): sum=array[0] result=array[0] for i in range(0,n): if sumresult: result=sum end=i ...
分类:
编程语言 时间:
2015-04-07 18:58:37
阅读次数:
314
lua中的正则表达式,规则如图:
常用示例,代码如下:
-- 去掉首尾所有空格
function trim(s)
return (string.gsub(s, "^%s*(.-)%s*$", "%1"))
end
local s = " space "
local txt = trim(s)
print(string.len(s), string.len(txt))...
分类:
其他好文 时间:
2015-04-07 17:44:59
阅读次数:
422
1.AppDelegate.m 1 #import "AppDelegate.h" 2 #import "ViewController.h" 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 ...
分类:
移动开发 时间:
2015-04-07 13:44:49
阅读次数:
157
【https://gist.github.com/1531596】@interface UIImage (fixOrientation)- (UIImage *)fixOrientation;@end@implementation UIImage (fixOrientation)- (UIImage...
分类:
其他好文 时间:
2015-04-07 13:40:21
阅读次数:
106
#include#includeusing namespace std;/*14.7. 自增操作符和自减操作符*///可以定义一个类,该类指向一个数组并为该数组中的元素提供访问检查/*构造函数的参数是两个指针:一个指向数组的开始,另一个指向数组的末端。构造函数用这两个指针初始化 beg 和 end,...
分类:
其他好文 时间:
2015-04-07 11:17:46
阅读次数:
112
M是消息传递数目,N进程数量,Msg是传递的消息-module(exe3_2).
-export([start/3,stop/0]).start(M,N,Msg) ->register(ring,spawn(fun()->ring_service(M,N,Msg) end)).stop() -> ring!stop.ring_service(M,N,Msg) ->
Ring=ring_nod...
分类:
系统相关 时间:
2015-04-07 09:44:20
阅读次数:
192
关键是想好swap 的function怎么写我的做法是输入输出两支点pre& end,中间的两个node swappublic class Solution { public ListNode swapPairs(ListNode head) { if(head==null ||...
分类:
其他好文 时间:
2015-04-07 07:10:45
阅读次数:
128
1.查看所有的命令:连续按两次tab键2.man:操作说明 2.0 man [命令]:查看指定命令的操作说明 2.1 空格:下一页 2.2 PageUp:上一页 2.3 PageDown:下一页 2.4 Home:第一页 2.5 End:最后一页 2.6 /string:搜寻指定字符串...
分类:
系统相关 时间:
2015-04-06 18:44:10
阅读次数:
148