今天在实现play gif功能的时候,看到有两个类比较陌生,就在此记录下看到的东西:
NSSet和NSDictionary是两个常用的类,但是他们默认假定了其中对象的内存行为。对于NSSet,object是强引用的,和NSDictionary中的value是一样的。而NSDictionary中的key则是copy的,因此当开发者想要使NSSet的objects或者NSDictionary的v...
分类:
其他好文 时间:
2014-10-10 19:16:34
阅读次数:
242
// Playground - noun: a place where people can play
import UIKit
//2014-09-23 集合类型 Collection Types
//.............................................
//1.数组
/*
1. 数组是类型安全的
*/
//1.1定义一个数组变量
var sho...
分类:
编程语言 时间:
2014-10-10 16:37:34
阅读次数:
301
【开发环境】 操作系统:Win 7旗舰版 一、IntelliJ IDEA的引入: 2013年,IntelliJ IDEA小组已经与众多业内领先的开发技术建立了非常紧密的关系:例如Android, Spring, Scala和Gradle. 这样一来,我么就能够在百舸争流中保持领先,为开发者提供最优质...
分类:
移动开发 时间:
2014-10-09 18:42:07
阅读次数:
239
1.环境OS:Red Hat Enterprise Linux Server release 6.4 (Santiago)Hadoop:Hadoop 2.4.1Hive:0.11.0JDK:1.7.0_60Spark:1.1.0(内置SparkSQL)Scala:2.11.22.Spark集群规划账...
分类:
数据库 时间:
2014-10-09 01:49:27
阅读次数:
306
声明一个协议头文件#ifndef Dog_Play_h#define Dog_Play_h@protocol Play @required- (void)brak;- (void)tail;- (void)go;@end#endif定一个persons类.#import #import "Play....
分类:
其他好文 时间:
2014-10-09 01:16:37
阅读次数:
133
最近在给unity工程尝试接入google play services插件,遇到了些问题,记录一下。之前在做android插件的时候,都是自己创建一个android工程,把生成的.class文件打包成jar包,然后把libs文件,AndroidManifest.xml文件一齐都放到Assets/Pl...
分类:
其他好文 时间:
2014-10-09 00:52:37
阅读次数:
402
题目:方程 x = p * floor(x÷k)+ q * ceil(x÷k)给定x和k,求一组成立的p与q。
分析:数论。设 x = m*k + n(其中,n = x mod k);
若n = 0:x = m*k,floor(x÷k)= ceil(x÷k)= m,x = p * m + q * m,令p = k,q = 0即可;
若n ≠ 0...
分类:
其他好文 时间:
2014-10-08 12:29:05
阅读次数:
197
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient; using Dapper; // to have a play, instal...
分类:
移动开发 时间:
2014-10-07 17:34:53
阅读次数:
182
Problem Description
Jack and Jill play a game called "Leap Frog" in which they alternate turns jumping over each other. Both Jack and Jill can jump a maximum horizontal distance of 10 units in any ...
分类:
其他好文 时间:
2014-10-07 13:34:33
阅读次数:
152
http://poj.org/problem?id=3517And Then There Was OneTime Limit:5000MSMemory Limit:65536KTotal Submissions:4805Accepted:2546DescriptionLet’s play a sto...
分类:
其他好文 时间:
2014-10-07 13:05:13
阅读次数:
130