先看看维基定义: The observer pattern is a softeware desugn pattern in which an object, called the subject, maintains a list of its dependents, called observe ...
分类:
其他好文 时间:
2017-09-11 10:23:06
阅读次数:
192
1 if (!Object.keys) { 2 Object.keys = (function () { 3 var hasOwnProperty = Object.prototype.hasOwnProperty, //原型上的方法,只取自身有的属性; 4 hasDontEnumBug = !({... ...
分类:
其他好文 时间:
2017-09-10 20:49:45
阅读次数:
153
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.... ...
分类:
编程语言 时间:
2017-09-10 19:51:07
阅读次数:
163
一: All member functions (including copy constructor and copy assignment) can be called by multiple threads on different instances of shared_ptr withou ...
分类:
编程语言 时间:
2017-09-08 10:18:05
阅读次数:
455
【async.series】 series适用于顺序执行异步且前后无关联的调用。对于顺序执行异步且前后有叛逆的调用,则需要使用waterfall。 If any functions in the series pass an error to its callback, no more functi ...
分类:
其他好文 时间:
2017-09-07 18:15:58
阅读次数:
159
【async.waterfall】 if any of the tasks pass an error to their own callback, the next function is not executed, and the main callback is immediately cal ...
分类:
其他好文 时间:
2017-09-07 18:09:05
阅读次数:
160
Petya is a big fan of mathematics, especially its part related to fractions. Recently he learned that a fraction is called proper iff its numerator is ...
分类:
其他好文 时间:
2017-09-07 13:24:43
阅读次数:
184
__CLASS__获取当前的类名, get_class()与上面一样,都是获取当前的类名 get_called_class()获取当前主调类的类名 当涉及到继承时,在方法中使用类名。直接贴图了 MVC框架中,涉及到单例时很好用,一般在基类中 其他类只要继承这个类,然后通过getInstance()就 ...
分类:
Web程序 时间:
2017-09-05 14:38:48
阅读次数:
270
Let $E$ be a subset of a metric sapce $(X, d)$ and $r>0.$ The set $E$ is called $r$-discrete if $d(x,y)\ge r$ whenever $x,y\in E, x\not=y.$ Let $N_r(B ...
分类:
其他好文 时间:
2017-09-04 15:58:00
阅读次数:
202
Q: What is Computational Graph?A: Computational Graph is a series of Tensorflow operations arranged into a graph of nodes. Q: How to building the Comp ...
分类:
其他好文 时间:
2017-09-03 00:25:15
阅读次数:
126