1.包含 #import "SDImageCache. 2.当前大小 double size = [[SDImageCache sharedImageCache] getSize]/(1024 * 1024.0); 3,删除 ...
分类:
其他好文 时间:
2017-01-03 19:10:03
阅读次数:
136
/** * 将非GBK字符集的编码转为GBK * * @param mixed $mixed 源数据 * * @return mixed GBK格式数据 */ function charsetToGBK($mixed) { if (is_array($mixed)) { foreach ($mixe ...
分类:
其他好文 时间:
2017-01-03 19:00:26
阅读次数:
171
## 1.插入排序 插入排序法的基本思路:同样以案例来说明,还是以$arr = array(2,6,3,9),由大到小排序。实现原理:插入排序的思想有点像打扑克抓牌的时候,我们插入扑克牌的做法。想象一下,抓牌时,我们都是把抓到的牌按顺序放在手中。因此每抓一张新牌,我们都将其插入到已有的排好序的手牌当 ...
分类:
编程语言 时间:
2017-01-03 16:49:46
阅读次数:
255
//请求苹果商店,查看商店在线版本的版本号 [[[NSURLSession sharedSession] dataTaskWithURL:[NSURL URLWithString:@"http://itunes.apple.com/lookup?id=328266349"] completionHa... ...
分类:
移动开发 时间:
2017-01-03 11:47:18
阅读次数:
240
https://en.wikipedia.org/wiki/Aspect-oriented_programming Action Agent-oriented Array-oriented Automata-based Concurrent computing Relativistic progra ...
分类:
其他好文 时间:
2017-01-03 08:09:23
阅读次数:
152
import java.lang.reflect.Field;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;import java.sql.Date;import java.uti ...
分类:
其他好文 时间:
2017-01-01 23:56:06
阅读次数:
450
AC代码: 题目来源: http://www.lintcode.com/zh-cn/problem/fizz-buzz/ ...
分类:
其他好文 时间:
2017-01-01 22:43:06
阅读次数:
184
对象在JavaScript中被称为引用类型,而且有一些内置的引用类型可以用来创建特定的对象,现简要总结如下: 1.引用类型与传统的面向对象程序设计中类似,但是实现不同; 2.Object是一个基础类型,所有类型都从Object继承了基本行为; 3.Array类型是一组值的有序列表,同时还提供了操作和 ...
分类:
其他好文 时间:
2017-01-01 14:18:06
阅读次数:
164
Problem: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant d ...
分类:
其他好文 时间:
2017-01-01 08:45:05
阅读次数:
201
Find the K closest points to a target point in a 2D plane. ...
分类:
其他好文 时间:
2017-01-01 07:58:05
阅读次数:
145