由于近期的项目须要,Hybrid开发成为我開始学习的新知识。非常早之前就了解到两个开发框架--BeeFramework 和 Samurai,可是由于本人一直没有闲暇去研究,所以就一直搁置一旁了。近期才開始进行深入的学习,但事实上也就是入个门而已。 我是个纯OC开发人员,之前对XML和CSS并没有什么 ...
分类:
其他好文 时间:
2017-06-21 19:48:18
阅读次数:
136
题目链接 题意: 一个长度为L的木棍,有n个支点支撑,每一个点是一个int数。表示距离木棍左端点的距离。求在那些位置将木棍劈开能够使得至少有一个木棍掉下去,输出这些位置的长度 3 ≤ l ≤ 109; 2 ≤ n ≤ 105分析: 对于左端的木棍。假设会掉下去一定是重心在木棍之外。两种情况:1,在最 ...
分类:
其他好文 时间:
2017-06-12 20:36:15
阅读次数:
148
Little Peter Ivanov likes to play knights. Or musketeers. Or samurai. It depends on his mood. For parents, it is still always looks like “he again fou ...
分类:
其他好文 时间:
2017-01-19 07:43:27
阅读次数:
209
Description Seiji Hayashi had been a professor of the Nisshinkan Samurai School in the domain of Aizu for a long time in the 18th century. In order to ...
分类:
编程语言 时间:
2016-10-01 17:14:16
阅读次数:
261
DescriptionSeiji Hayashi had been a professor of the Nisshinkan Samurai School in the domain of Aizu for a long time in the 18th century. In order to ...
分类:
其他好文 时间:
2015-07-20 10:48:24
阅读次数:
109
Description
Seiji Hayashi had been a professor of the Nisshinkan Samurai School in the domain of Aizu for a long time in the 18th century. In order to reward him for his meritorious career in educa...
分类:
编程语言 时间:
2015-06-23 23:13:06
阅读次数:
257
Description
Seiji Hayashi had been a professor of the Nisshinkan Samurai School in the domain of Aizu for a long time in the 18th century. In order to reward him for his meritorious career in educa...
分类:
其他好文 时间:
2015-06-04 15:53:16
阅读次数:
122
送上最新鲜的热点推荐---运维2.0,危机前的自我拯救 | 高效运维最佳实践04 移动开发 ---从Samurai-Native框架开发谈ReactNative 业界资讯---Google Cloud BigTable:兼容HBase接口号称秒杀其他NoSQL网页设计 ---响应式网页设计的9条基本原则...
分类:
其他好文 时间:
2015-05-07 14:36:11
阅读次数:
110
Samurai的入口点在Samurai这个类,在load方法里实例化了Samurai
1.1 SamuraiServiceLoader 安装服务 installServices
loadedClassNames 返回所有的类
subClasses 得到自己的子类
初始化 服务
给实现了ManagedService协议的服务 发送powerOn消息
给服务发送install消息
samurai目前有...
分类:
其他好文 时间:
2015-04-13 14:45:11
阅读次数:
199
samurai中的宏魔法文件 Samurai_Predefine.h
Samurai里的一些预设宏// 这3个宏是在定义属性 @prop_assign( NSInteger, page IN)的时候标记这个数据流的方向时用的.
#define IN
#define OUT
#define INOUT
// 函数属性限定符: __attribute__((unused)) 这个限定符属性禁止编译器在...
分类:
其他好文 时间:
2015-04-13 14:43:15
阅读次数:
149