使用Material Design设计应用:Take a look at thematerial design specification.Apply the materialthemeto your app.Define additionalstylesto customize the mater...
分类:
其他好文 时间:
2014-12-09 21:15:55
阅读次数:
187
CoomonJS modules provide a clean syntax for importing dependencies. This lesson will take a look at the basics of using CommonJS modules.app.jsvar dep...
分类:
Web程序 时间:
2014-12-09 07:05:40
阅读次数:
230
阻塞队列提供了可阻塞的 put 和 take 方法,以及支持定时的 offer 和 poll 方法。如果队列已经满了,那么put方法将阻塞直到有空间可以用;如果队列为空,那么take方法将一直阻塞直到有元素可用。队列可以使有界的,也可以是无界的,无界队列永远都不会充满,因此无界队列上的put方法永远不会阻塞。一种常见的阻塞生产者-消费者模式就是线程池与工作队列的组合,在 Executor 任务执行框架中就体现了这种模式。
意义:该模式能简化开发过程,因为他消除了生产者和消费者类之间的代码依赖性,此外,该模式...
分类:
编程语言 时间:
2014-12-06 21:37:31
阅读次数:
341
1.Partitioning 分区Take例1:取前3个数 1 static void Linq1() 2 { 3 int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; 4 var first3Numbers = numbers.Take...
分类:
其他好文 时间:
2014-12-05 00:43:42
阅读次数:
287
拼着一切代价,奔你的前程。——巴尔扎克
本讲内容:3DSmax简介
一、3DSmax视图控制
菜单栏、工具栏、视图区、动画区、视图控制区、命令面板
本讲就到这里,Take your time and enjoy it...
分类:
其他好文 时间:
2014-12-04 19:57:14
阅读次数:
165
One sample is used to replace double quote from words which encapsulated by csvwriter ,you know csv writer will take care of the double quote and com....
分类:
Web程序 时间:
2014-12-04 19:46:05
阅读次数:
269
I was too optimistic.It is take several days working on the demo.. The intresting thing is when I finished the demo, I understand how people make a ro...
分类:
编程语言 时间:
2014-12-04 00:41:10
阅读次数:
219
在Mac OS X10.10下sudo gem install curses 返回如下错误:
apple@kissAir: ruby_src$sudo gem install curses
Password:
Fetching: curses-1.0.1.gem (100%)
Building native extensions. This could take a...
分类:
系统相关 时间:
2014-12-03 12:33:28
阅读次数:
394
Given integers N and M, output in how many ways you can take N distinct positive integers such that sum of those integers is M. Since result can be huge, output it modulo 1000000007
(10^9 + 7)
N ...
分类:
其他好文 时间:
2014-12-03 00:24:54
阅读次数:
230
在《并发容器 part 4 并发队列与Queue简介》节中的类图中可以看到,对于Queue来说,BlockingQueue是主要的线程安全版本。这是一个可阻塞的版本,也就是允许添加/删除元素被阻塞,直到成功为止。BlockingQueue相对于Queue而言增加了两个操作:put/take。下面是一...
分类:
编程语言 时间:
2014-12-02 23:54:50
阅读次数:
296