Google官方的下拉刷新组建activity代码实现:/** * The SwipeRefreshLayout should be used whenever the user * can refresh the contents of a view via a vertical swipe g....
分类:
移动开发 时间:
2014-06-27 21:47:09
阅读次数:
324
我这段时间在用redis,感觉挺方便的,但比较疑惑在选择内存数据库的时候到底什么时候选择redis,什么时候选择memcache,然后就查到下面对应的资料,是来自redis作者的说法(stackoverflow上面)。 You should not care too much about per.....
分类:
其他好文 时间:
2014-06-27 16:02:52
阅读次数:
253
12. You need to produce a report where each customer's credit limit has been incremented by $1000. Inthe output, the customer's last name should have ...
分类:
其他好文 时间:
2014-06-27 15:53:14
阅读次数:
225
Report Trigger1.1 Which report trigger to useAs a general rule, any processing that will affect the data retrieved by the report should be performed i...
分类:
其他好文 时间:
2014-06-27 15:14:32
阅读次数:
214
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2014-06-27 13:03:49
阅读次数:
136
题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should ...
分类:
其他好文 时间:
2014-06-27 11:55:43
阅读次数:
187
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:
其他好文 时间:
2014-06-26 15:55:21
阅读次数:
200
【题目】
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
【题意】
给定一个整数数组,其中除了一个数以外,其他数都是成对出现的,...
分类:
其他好文 时间:
2014-06-26 10:13:27
阅读次数:
254
今天推荐一款来自angularjs源码的单元测试辅助库browserTrigger,这是来自于ngScenario的一段代码。主要用户触发浏览器型行为更新ng中scope view model的值。这是angularjs源码中单元测试的使用browserTrigger的实例:it('should s...
分类:
Web程序 时间:
2014-06-25 12:28:40
阅读次数:
242
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o...
分类:
其他好文 时间:
2014-06-25 12:14:23
阅读次数:
159