Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+"...
分类:
其他好文 时间:
2015-06-03 00:42:00
阅读次数:
147
Radar InstallationTime Limit:1000MSMemory Limit:10000KTotal Submissions:59563Accepted:13430DescriptionAssume the coasting is an infinite straight line...
分类:
其他好文 时间:
2015-06-03 00:40:00
阅读次数:
158
定义百度文库:单例模式是一种常用的软件设计模式。在它的核心结构中只包含一个被称为单例类的特殊类。通过单例模式可以保证系统中一个类只有一个实例而且该实例易于外界访问,从而方便对实例个数的控制并节约系统资源。如果希望在系统中某个类的对象只能存在一个,单例模式是最好的解决方案。标准定义:Singleton...
分类:
其他好文 时间:
2015-06-03 00:39:42
阅读次数:
176
Avoiding Branch Divergence有时,控制流依赖于thread索引。同一个warp中,一个条件分支可能导致很差的性能。通过重新组织数据获取模式可以减少或避免warp divergence(该问题的解释请查看warp解析篇)。The Parallel Reduction Probl...
分类:
其他好文 时间:
2015-06-03 00:38:42
阅读次数:
150
转自:http://book.51cto.com/art/201311/419441.htm3.21 strcat函数造成的段错误代码示例intmain() { chardest[7]="12345"; char*src="abcdefghigklmnopqrstuvwxyz"; strcat(de...
分类:
其他好文 时间:
2015-06-03 00:40:39
阅读次数:
250
我目前使用的浏览器是360极速浏览器,下面将针对用户界面、记住用户选择、短期刺激、长期使用的好处坏处、不要让用户犯简单的错误四个方面对其进行评估:1.用户界面:01 可视性原则--网络没有连接或者访问某个网址没有应答或者不存在时,会分别有不同的提示信息,可以让用户清晰地知道网络问题的症结所在;0.....
分类:
其他好文 时间:
2015-06-03 00:37:30
阅读次数:
199
Well, this problem has a naive solution, which is to sort the array in descending order and return thek-1-th element. However, sorting algorithm gives...
分类:
其他好文 时间:
2015-06-03 00:38:52
阅读次数:
230
Cleaning ShiftsTime Limit:1000MSMemory Limit:65536KTotal Submissions:12874Accepted:3331DescriptionFarmer John is assigning some of his N (1 #include #...
分类:
其他好文 时间:
2015-06-03 00:38:58
阅读次数:
149
一.CI的HelloWorld!注意:CI禁止直接通过文件目录来访问控制器。 ./application/controllers/hello.php 1 load->view('XXX'); 1 $name,'value'=>$count);18 19 $re = fopen('./...
分类:
其他好文 时间:
2015-06-03 00:37:02
阅读次数:
123
代码名称股价总市值所属行业6日涨幅%6日换手%总股本601628中国人寿35.269966亿保险-3.852.77283亿601318中国平安85.447809亿保险-1.3418.8791.4亿601601中国太保32.232921亿保险-3.8510.8890.6亿601336新华保险58.8....
分类:
其他好文 时间:
2015-06-03 00:38:59
阅读次数:
718
A classic tree traversal problem. I share my two solutions here: BFS and DFS.BFS: 1 vector> levelOrder(TreeNode *root) { 2 vector> levels;...
分类:
其他好文 时间:
2015-06-03 00:36:39
阅读次数:
161
Well, have you solved thenextPermutationproblem? If so, your code can be used in this problem. The idea is fairly simple:sortnumsin ascending order, a...
分类:
其他好文 时间:
2015-06-03 00:37:06
阅读次数:
144
org.apache.commons com.springsource.org.apache.commons.logging ${apache.commons.version} fakepath com.springsource.net.sf.cglib 1.1...
分类:
其他好文 时间:
2015-06-03 00:38:24
阅读次数:
375
曾经试过这样的方法 ????? 在iframe子页面获取父页面元素 ????? 代码如下: ????? $(‘#objId‘, parent.document); 这样可以获得父页面的元素,但是调用EasyUI的方法的时候,就会报错。 郁闷了很久很...
分类:
其他好文 时间:
2015-06-02 23:34:00
阅读次数:
325
Junits 和 Selenium ? ? Junits 处理的是unit level 的测试;Selenium 处理的是 functional leve 的测试。虽然它们是完全不同,但仍然可以用Junit 来写 Selenium 测试。 一个完整的例子 import?java.util.con...
分类:
其他好文 时间:
2015-06-02 23:35:12
阅读次数:
337
#include
#include
using namespace std;
class Stu //声明基类
{
public:
Stu(int n, string nam); //基类构造函数
void display(); //成员函数,输出基类数据成员
protected: //(*)访问权限为保护型的数据成员
int num; ...
分类:
其他好文 时间:
2015-06-02 23:34:43
阅读次数:
286
转载请注明出处
源码下载地址
这次解析的控件DrawerArrowDrawable是一款侧拉抽屉效果的控件,在很多应用上我们都可以看到(例如知乎),控件的github地址为https://github.com/ChrisRenke/DrawerArrowDrawable
大家可以先来看一下控件的效果
这个控件的作者,也写过一篇文章对控件的制作过程做了说明,其中更多的是涉及箭头的...
分类:
其他好文 时间:
2015-06-02 23:32:53
阅读次数:
437