码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
小米·粽子达人
粽子达人闲来无聊,加上今天没有抢到小米任何产品,(小米2以来,基本小米的产品都有抢到过,特别是红米手机抢得够多,现在就遗憾抢不到红米note了),所以想吃200个粽子,成为攻城狮。可由于手拙,只能吃到 100 多,无法完成心愿。故只好使用外挂,小小几行代码模拟敲击 white space key 就...
分类:移动开发   时间:2014-06-29 15:00:40    阅读次数:289
集群服务器状态命令------rs.status()各个字段的含义
可根据rs.status() 查询集群服务器状态.字段解释:self 这个信息出现在执行rs.status()函数的成员信息中stateStr用户描述服务器状态的字符串。有SECONDARY,PRIMARY,RECOVERING等uptime 从成员可到达一直到现在经历的时间,单位是秒。optime...
分类:其他好文   时间:2014-06-07 05:23:53    阅读次数:326
soinn
Growing Cell Structures A Self-Organizing Network for Unsupervised and Supervised LearningHere, and throughout the whole paper, △x = y stands for x(ne...
分类:其他好文   时间:2014-05-28 22:46:34    阅读次数:240
leetcode -- 3sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2014-05-28 16:47:30    阅读次数:308
NSTimer的使用
- (void)addTimer{ self.timer = [NSTimerscheduledTimerWithTimeInterval:2.0target:selfselector:@selector(nextImage) userInfo:nilrepeats:YES]; [[NSRunL.....
分类:其他好文   时间:2014-05-28 14:59:48    阅读次数:231
transform
- (IBAction)leftRotate { // 1.取得头像按钮 UIButton *head = (UIButton *)[self.view viewWithTag:10]; // 2.向左旋转45° // 45 180 // 角度是正数:顺时针, 角度是负数:逆时针// ...
分类:其他好文   时间:2014-05-28 13:36:43    阅读次数:237
ASIHTTPRequest 未下载完时,离开下载页面后,程序会崩掉
最近使用ASIHTTPRequest下载图片时,在未下载完时跳出下载页面会让程序奔溃。 1 BOOL dataWillBeHandledExternally = NO; 2 3 if ([[self delegate] respondsToSelector:[self didReceiveData....
分类:其他好文   时间:2014-05-28 03:02:32    阅读次数:263
Python的静态方法和类成员方法
http://www.cnblogs.com/2gua/archive/2012/09/03/2668125.htmlPython的静态方法和类成员方法都可以被类或实例访问,两者概念不容易理清,但还是有区别的:1)静态方法无需传入self参数,类成员方法需传入代表本类的cls参数;2)从第1条,静态...
分类:编程语言   时间:2014-05-27 23:47:06    阅读次数:447
python类方法和静态方法
C++的静态方法是用static关键字,python j是没用static的。python中实现静态方法和类方法都是依赖于python的修饰器来实现的。classMyClass:defmethod(self):print("method")@staticmethoddefstaticMethod()...
分类:编程语言   时间:2014-05-26 18:16:42    阅读次数:282
【LeetCode】Single Number
原文: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without ...
分类:其他好文   时间:2014-05-25 21:30:02    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!