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,3,2,1,2,1]...
分类:
移动开发 时间:
2015-07-20 19:45:52
阅读次数:
175
下面我们先看一个例子已经一张图。function Foo() {}Object.prototype.name = 'My Object';Foo.prototype.name = 'Bar';var obj = new Object();var foo = new Foo();console.log...
分类:
编程语言 时间:
2015-07-20 19:16:35
阅读次数:
138
Datatable 实现ajax动态分页、设计各列单元格dom格式。
id:表格id
ordering:是否可以排序
paging:在所有表数据已加载完毕后,是否分页显示
Processing:是否异步载入未显示表格数据
aoColumnDefs:列控制,aTargets表示所选控制的列,mRender表示对所选列的操作。
bProcessing:加载数据时候是否显示进度...
分类:
Web程序 时间:
2015-07-20 14:34:44
阅读次数:
150
题目:
Given n non-negative integers
representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where wi...
分类:
编程语言 时间:
2015-07-19 13:35:37
阅读次数:
128
所有的样品已经在Android 4.04 手机正常进行1、demo/kivycatalog这个例子说明了如何使用主控件,例如Layout,Button,MediaPlayer,Progress Bar等等watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvSTJ...
分类:
其他好文 时间:
2015-07-18 16:54:45
阅读次数:
134
去掉屏幕上的title bar有3个方法:1.java代码实现:1 @Override2 publicvoid onCreate(Bundle savedInstanceState) {3 super.onCreate(savedInstanceState);4 5 requestWindowFea...
分类:
移动开发 时间:
2015-07-18 15:19:09
阅读次数:
163
//使用构造函数var foo:Object=new Object();//使用空的大括号对作为new Object()函数的语法快捷方式var bar:Object={name:'weipeng',web:'www.weipeng.com'};trace(bar.name);var a:Objec...
分类:
其他好文 时间:
2015-07-18 00:21:53
阅读次数:
213
svn常用命令集合
svn 是在提交前查看本地文本和版本库里面的文件的区别。返回值有许多种具体含义如下:
L abc.c # svn已经在.svn目录锁定了abc.c
M bar.c # bar.c的内容已经在本地修改过了
M baz.c # baz.c属性有修改,但没...
分类:
其他好文 时间:
2015-07-17 22:52:11
阅读次数:
145
1、http://www.cnblogs.com/Wayou/p/youtube_red_laser_bar.htmlCSS3动画:YouTube的红色激光进度条2、http://www.zhihu.com/question/21507963YouTube 页面顶部加载进度条是怎么实现的?3、htt...
分类:
其他好文 时间:
2015-07-17 15:32:40
阅读次数:
109