原文 A woman in jeans stood at the window of an expensive shop. Though she hesitated for a moment, she finally went in and asked to see a dress that was in the window. The assistant who served her ...
分类:
其他好文 时间:
2015-10-06 14:13:20
阅读次数:
156
在学过sed、awk这类功能强大的文本流处理命令后,面对简单字符串处理,往往会忘记一种更高效简洁的方法,它就是SHELL内置的字符串处理。1、字符串的判断与赋值。表达式含义${var}变量var的值,,我们常用的$var就是它的缩写${var-DEFAULT}如果var没有被声明,那么就以$DEFAULT作..
分类:
系统相关 时间:
2015-09-29 17:01:05
阅读次数:
282
原文:http://ryanwaggoner.com/2010/12/you-dont-really-want-a-million-dollars/a certain kind of ingenuity, discipline, and proactivity that most people se...
分类:
其他好文 时间:
2015-09-29 10:02:23
阅读次数:
166
1,AnyObject :代表任何class类型的对象实例。1234567891011121314151617class Man{}class Woman{}let man = Man()let woman = Woman()var arr:[AnyObject] = [man,woman]for....
分类:
编程语言 时间:
2015-09-25 16:32:28
阅读次数:
160
在Swift中,通常使用is和as操作符来实现类型检查和转换。下面通过样例来演示使用方法,首先定义几个类。1234567891011//基类,人类class Human{}//男人类class Man:human{}//女人类class Woman:human{}1,is 用来做类型检查(注意:is...
分类:
编程语言 时间:
2015-09-25 15:58:40
阅读次数:
163
如何让Android Studio的智能感知不区分大小写?http://ask.csdn.net/questions/155844
分类:
移动开发 时间:
2015-09-22 16:29:32
阅读次数:
150
最大值和最小值的问题是独立且相似的,考虑最大值:考虑离线,设ask(i,l,r)为以1到i为右端点时左端点在区间[l,r]内的区间最大值的和。从1到n枚举右端点,假设现在是i,那么可以通过单调栈求出最小的j使得[j,i]内a[i]是最大值。然后左端点在[j,i]区间内的所有区间最大值都应当变为a[i...
分类:
其他好文 时间:
2015-09-21 01:15:42
阅读次数:
187
原文 Dentists always ask questions when it is impossible for you to answer. My dentist had just pulled out one of my teeth and told me to rest for a while. I tired so say something, but my mouth wa...
分类:
其他好文 时间:
2015-09-11 14:31:11
阅读次数:
181
IOS平台第三方插件开发指导插件开发http://ask.dcloud.net.cn/docs#http://ask.dcloud.net.cn/article/67 原出技术架构HTML5+ 基座扩展采用三层结构,JS层、PluginBridge层和Native层。 三层功能分别是:JS层: 在W...
分类:
移动开发 时间:
2015-09-09 16:12:31
阅读次数:
418
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are some good questions to ask...
分类:
其他好文 时间:
2015-09-08 08:24:05
阅读次数:
129