码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
Programming In Scala Reading Note 1
Chapter1 and Chapter2方法定义:def methodName(param1: ParamType, param2: ParamType2, [maybe more]): ReturnType = { // method body}函数式编程中一个约定俗成的说法就是,方法会返回一....
分类:其他好文   时间:2014-06-25 19:15:35    阅读次数:205
chckbox 实现单选效果(html)
note:在html 标签类中的checkbox实现单选效果。在最近的开发项目中,客户要求使用小方格子实现“单选”功能,显然圆点的radio被out了,只能选择chckbox的方块样式,也在网上搜过,可能有点儿脑残,没有找到。废话不多说直接上代码: checkbox实现单选效...
分类:Web程序   时间:2014-06-25 19:14:51    阅读次数:258
Programming In Scala Reading Note 2
Learn to programming in funtional way如果一个方法中存在var的话,那么这个方法很可能就是指令式编程。如果一个方法中只存在val的话,那么这个方法很可能是函数式编程。我们需要尝试着把方法中的val删除掉。副作用,一个方法满足函数式编程的基本要求,但是返回值是一个U...
分类:其他好文   时间:2014-06-25 18:31:47    阅读次数:166
双slave的server_uuid同样问题
早上做数据迁移,部署完slave2,发现3台机子的日志狂刷:旧slave:2014-05-29 14:35:35 996 [Note] Slave: received end packet from server, apparent master shutdown: 2014-05-29 14:35...
分类:其他好文   时间:2014-06-25 16:22:22    阅读次数:283
python无私有成员变量
python解释器将__init__函数里的__z变量转成 _classname__z了,明确规则后外部依旧能够通过实力对象来訪问。In [1]: class aa: ...: def __init__(self): ...: self.x = 10 ...: ...
分类:编程语言   时间:2014-06-25 16:12:09    阅读次数:211
iOS开发多线程篇—线程的状态
iOS开发多线程篇—线程的状态一、简单介绍线程的创建:self.thread=[[NSThread alloc]initWithTarget:self selector:@selector(test) object:nil];说明:创建线程有多种方式,这里不做过多的介绍。线程的开启:[self.th...
分类:移动开发   时间:2014-06-25 11:55:02    阅读次数:306
update tableView contenSize
NSIndexPath *messageIndexPath = [NSIndexPath indexPathForRow:afterRowCount-1 inSection:0];    [self.tableView beginUpdates];    [self.tableView insertRowsAtIndexPaths:@[messageIndexPath] withRowAnim...
分类:其他好文   时间:2014-06-25 09:59:01    阅读次数:191
iOS开发 日常错误积累
1、ios7 tableviewcell上面添加一个view,view上面有button,点击button不执行button的点击事件 解决办法: self.view.userInteractionEnabled = YES; [cell.contentView addSubview:self.view] 主要问题是cell的高度没有view本事的高度高,造成view没有完全在ce...
分类:移动开发   时间:2014-06-25 07:12:58    阅读次数:263
iOS图片模糊效果
加入  CoreImage.framework  CoreGraphic.framework 等库 在使用时引入:#import ,支持iOS 5.0 及以上。 -(void)show {     UIImage* img = [self getBlurImage:[UIImage imageNamed:@"Default...
分类:移动开发   时间:2014-06-24 17:23:41    阅读次数:297
LeetCode——Single Number II
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-06-24 15:52:58    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!