#include "common.h"#include "pool.h"#include static inline void *objmem_to_obj(void *objmem){return objmem + sizeof(pool_obj_head_t);}static inline vo...
分类:
其他好文 时间:
2014-06-27 21:24:59
阅读次数:
292
This post introduces how to limit the access scope of the field and method of the object.
分类:
编程语言 时间:
2014-06-26 23:10:37
阅读次数:
418
var appElement = document.querySelector('[ng-controller=seatsCtrl]');var $scope = angular.element(appElement).scope();$scope.$apply(function () { $sco...
分类:
Web程序 时间:
2014-06-26 20:12:05
阅读次数:
551
Singleton.h#define singleton_h(name) + (instancetype)shared##name;#if __has_feature (objc_arc)#define singleton_m(name) \static id _instance; \\+ (id)...
分类:
编程语言 时间:
2014-06-26 16:39:23
阅读次数:
193
This post introduces how to use the module pattern to limit the access scope of the methods of object or constructor in the module.
分类:
编程语言 时间:
2014-06-26 12:19:06
阅读次数:
231
依赖
<dependency>
<groupId>org.archive.heritrix</groupId>
<artifactId>heritrix-commons</artifactId>
<version>3.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
..
分类:
其他好文 时间:
2014-06-26 06:19:10
阅读次数:
300
//以下为rtsp的服务器A 1 #include 2 3 #include 4 #include 5 6 static gboolean 7 timeout (GstRTSPServer * server) 8 { 9 GstRTSPSessionPool *pool;10 11 ...
分类:
其他好文 时间:
2014-06-25 14:21:25
阅读次数:
648
How to create QTP Shared Object RepositoryTo create a shared object repository by performing following steps1) Creating a Shared Object Repository2) A...
分类:
其他好文 时间:
2014-06-25 13:07:34
阅读次数:
220
今天推荐一款来自angularjs源码的单元测试辅助库browserTrigger,这是来自于ngScenario的一段代码。主要用户触发浏览器型行为更新ng中scope view model的值。这是angularjs源码中单元测试的使用browserTrigger的实例:it('should s...
分类:
Web程序 时间:
2014-06-25 12:28:40
阅读次数:
242
每一个iPhone程序都包含一个UIApplication对象,它管理整个程序的生命周期,从加载第一个显示界面开始,并且监听系统事件、程序事件调度整个程序的执行。
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int ret...
分类:
移动开发 时间:
2014-06-25 06:55:38
阅读次数:
268