回顾:1.手势: 基本手势类:UIGestureRecongnizer类型 六种手势: 一次性手势:tap Swipe点击一下划一下 连续性的手势:longPress Pinch rotation Pan 多手势共存:设置需要共存的手势的Delegate,然后让代理对象遵守协议,实现方法二:retu...
分类:
移动开发 时间:
2015-03-05 01:28:57
阅读次数:
342
截取字符串range我们可以通过 Range 截取字符串的字串:import Foundation
var str = "Aha, hello, why"
let rangeOfHello = Range(start: advance(str.startIndex, 5), end: advance(str.startIndex, 10))
let helloStr = str.substring...
分类:
编程语言 时间:
2014-12-03 21:18:37
阅读次数:
471
一、Hadoop计数器1.1 什么是Hadoop计数器 Haoop是处理大数据的,不适合处理小数据,有些大数据问题是小数据程序是处理不了的,他是一个高延迟的任务,有时处理一个大数据需要花费好几个小时这都是正常的。下面我们说一下Hadoop计数器,Hadoop计数器就相当于我们的日志,而日志可以让我....
分类:
其他好文 时间:
2014-10-07 21:12:14
阅读次数:
275
21天战拖记——Day17:如何将想法落地:SMART原则、思维导图、甘特图、九宫格、六个高度(2014-05-20)
分类:
其他好文 时间:
2014-05-21 22:06:18
阅读次数:
445
1、
??
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below...
分类:
其他好文 时间:
2014-05-18 03:25:06
阅读次数:
301