Sharing data between controllers in AngularJSI wrote this article to show how it can possible to pass data from one Controller to another one.There ar...
分类:
Web程序 时间:
2014-12-09 15:26:54
阅读次数:
276
题目
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n sat...
分类:
其他好文 时间:
2014-12-08 17:47:37
阅读次数:
179
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,...
分类:
移动开发 时间:
2014-12-08 15:32:44
阅读次数:
233
Python的类很类似一个容器,而且还是一个动态的容器,可以随时往里面增加内容:包括它的函数,成员。
例如如下的这个例子,默认创建一个空的python类,如果忘记了给他添加成员函数,则可以这么做
class Empty:
pass
1.增加构造函数
#这里必须要传入一个参数
#该参数也就是调用方的输入数据
#这里就是Empty的一个实例对象
def empt...
分类:
其他好文 时间:
2014-12-05 17:34:02
阅读次数:
164
【题目】
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n s...
分类:
其他好文 时间:
2014-12-05 17:31:22
阅读次数:
143
1. def fun:定义函数 def _initialize(self, key=16*'\0', iv=16*'\0'): .... 其中self相当于c/c++ this指针,可以不写,默认自带2. pass用法: 表示它不做任何事情,一般用做占位语句//在c/c++中if (a >...
分类:
其他好文 时间:
2014-12-04 21:17:55
阅读次数:
173
#!/usr/bin/perl
usestrict;
usewarnings;
useLWP::UserAgent;
useJSON;
useEncode;
my$mail=‘user‘;
my$pass=‘pass‘;
my$domain_info_url=‘https://dnsapi.cn/Domain.Info‘;
my$record_list_url=‘https://dnsapi.cn/Record.List‘;
subget_domain_id{
###获取数据
my($doma..
We can see this comment in nginx.conf.# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000Means: When the nginx handle PHP, the server...
分类:
Web程序 时间:
2014-12-04 17:19:37
阅读次数:
215
Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return...
分类:
其他好文 时间:
2014-12-04 17:16:00
阅读次数:
183
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-12-03 22:44:08
阅读次数:
134