Description:You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways c...
分类:
其他好文 时间:
2014-06-15 06:37:02
阅读次数:
200
SharePoint 2010 视图 xsl 文件中支持嵌入服务器控件,嵌入服务器控件时,系统先采用xsl将视图xml解析成一个类似UserControl的存在,然后执行UserControl。代码示例如下: '"/> ...
分类:
其他好文 时间:
2014-06-15 06:36:01
阅读次数:
214
Description:GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1],...
分类:
其他好文 时间:
2014-06-15 06:33:57
阅读次数:
216
iptables简介 netfilter/iptables(简称为iptables)组成Linux平台下的包过滤防火墙,与大多数的Linux软件一样,这个包过滤防火墙是免费的,它可以代替昂贵的商业防火墙解决方案,完成封包过滤、封包重定向和网络地址转换(NAT)等功能。iptables基础 规则(ru...
分类:
系统相关 时间:
2014-06-15 06:27:53
阅读次数:
420
写得很好: http://blog.csdn.net/hitwhylz/article/details/19689567CCNode类的setPosition,getPosition函数如果是一个Node的Child则获取的坐标就是该Node的本地坐标(原点为父节点左下角)。 另一个关键问...
分类:
其他好文 时间:
2014-06-15 06:25:50
阅读次数:
203
以下脚本用于linux系统的初始化脚本,可以在服务器系统安装完毕之后立即执行。脚本结合各位大牛一些参数,已经在CentOS5下通过。使用方法:将其复制,保存为一个shell文件,比如init.sh。将其上传到linux服务器上,执行sh init.sh。建议大家在系统安装后立即执行。脚本代码:#!/...
分类:
系统相关 时间:
2014-06-15 06:10:22
阅读次数:
698
(一)Swing概述 将Swing组件按功能来分: ->顶层容器: JFrame、JApplet、JDialog和JWindow ->中间容器: JPanel、JScrollPane、JSplitPane、JToolBar等 ->特殊容器:在用户界面上具有特殊作用的中间容器,如JIntern...
题目:Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ...
分类:
其他好文 时间:
2014-06-15 00:53:09
阅读次数:
314
Object.extend=function(destination, source) {for(varpropertyinsource) { destination[property]=source[property];}returndestination;}Prototype 对Object类进...
分类:
Web程序 时间:
2014-06-15 00:47:58
阅读次数:
188
Ajax 可以做什么? 现在 Google Suggest 和 Google Maps 使用了 Ajax,通过 Ajax,我们能够使得client得到丰富的应用体验及交换操作,而用户不会感觉到有网页提交或刷新的过程,页面也不须要被又一次载入,应用的数据交换都被隐藏。 传统的 WEB 应用程序模型是这...
分类:
其他好文 时间:
2014-06-15 00:43:49
阅读次数:
357