With the Gradle copy task we can define renaming rules for the files that are copied. We use the rename() method of the copy task to define the naming...
分类:
其他好文 时间:
2014-12-27 20:17:35
阅读次数:
183
We all laugh. We all hurt. We all make mistakes. We all dream. That's life. It's a journey. Please follow these rules to make the journey of your life...
分类:
其他好文 时间:
2014-12-27 18:47:25
阅读次数:
205
Stat2.2x Probability(概率)课程由加州大学伯克利分校(University of California, Berkeley)于2014年在edX平台讲授。PDF笔记下载(Academia.edu)SummaryBayes Theorem $$P(A_i|B)=\frac{P(B|...
分类:
其他好文 时间:
2014-12-26 06:09:33
阅读次数:
136
Stat2.2x Probability(概率)课程由加州大学伯克利分校(University of California, Berkeley)于2014年在edX平台讲授。PDF笔记下载(Academia.edu)Summary$$P(A\cap B)=P(B | A)\cdot P(A)$$ $...
分类:
其他好文 时间:
2014-12-25 06:34:57
阅读次数:
233
restrict:指令在dom中的声明形式 E(元素)A(属性)C(类名)M(注释)priority优先级:一个元素上存在两个指令,来决定那个指令被优先执行terminal:true或false,告诉angular是否停止执行比高优先级指令低的指令template:两种形式,一种HTML文本;一个可...
分类:
其他好文 时间:
2014-12-23 19:18:43
阅读次数:
199
思路:因为要满足字典序的拓扑排序,所以用了STL中的优先队列。
priority_queue<int,vector, greater > Q;
实现了权值小的优先级高,取出的时候保证序号是队列中最小的。
其他的和一般的拓扑排序无区别。...
分类:
编程语言 时间:
2014-12-22 22:50:05
阅读次数:
243
转文:本篇博客翻译自:http://blog.mongodb.org/post/87200945828/6-rules-of-thumb-for-mongodb-schema-design-part-1?mkt_tok=3RkMMJWWfF9wsRonsq7Ldu%2FhmjTEU5z14uUsUK...
分类:
数据库 时间:
2014-12-22 17:52:03
阅读次数:
185
priority_queue的用法
priority_queue调用 STL里面的 make_heap(), pop_heap(), push_heap() 算法实现,也算是堆的另外一种形式。先写一个用 STL 里面堆算法实现的与真正的STL里面的 priority_queue用法相似的priority_queue, 以加深对 priority_queue 的理解
#include...
分类:
其他好文 时间:
2014-12-22 09:35:35
阅读次数:
188
在Xcode中使用J2ObjC有两种方式:External Build和Xcode Build Rule。Xcode Build Rules方式:一、创建新工程打开Xcode,选择新建工程——随便选择一个Application,比如Single View application。Product Na...
分类:
其他好文 时间:
2014-12-21 16:28:26
阅读次数:
308
Log4j介绍Log4j由三个重要的组件构成:日志信息的优先级 priority,日志信息的输出目的地Appender,日志信息的输出格式(布局)layout。1、日志的优先级,从低到高,依次有:DEBUG,INFO,WARN,ERROR,分别用来指定这条日志信息的重要程度;如果定义了了输入的级别为...
分类:
其他好文 时间:
2014-12-18 23:34:59
阅读次数:
334