摘要: hashigh conversion ratesand iseasy to use. In other words, it's nice to both the business side as well as the people using it. Here is a running list of practical ideas to try out.All is read.Sign upfor updates.TryA One Column Layoutinstead of multicolumns.A one column layout will give you more 阅读全文
posted @ 2013-08-05 18:55 yingkong1987 阅读(312) 评论(0) 推荐(0)
摘要: 生成github公钥检查ssh公钥设置:如果id_rsa*文件不存在,跳到第三步;$ cd .ssh $ ls 备份原来的ssh key:备份旧数据,备份后删除旧数据;$ mkdir key_backup $ cp id_rsa* key_backup $ rm id_rsa* 生成github ssh key:$ ssh-keygen -t rsa -C "id@youremail.com" Generating public/private rsa key pair. Enter file in which to save the key (/Users/your_us 阅读全文
posted @ 2013-08-05 18:52 yingkong1987 阅读(449) 评论(0) 推荐(0)
摘要: Block简介Block作为C语言的扩展,并不是高新技术,和其他语言的闭包或lambda表达式是一回事。需要注意的是由于Objective-C在iOS中不支持GC机制,使用Block必须自己管理内存,而内存管理正是使用Block坑最多的地方,错误的内存管理 要么导致return cycle内存泄漏要么内存被提前释放导致crash。 Block的使用很像函数指针,不过与函数最大的不同是:Block可以访问函数以外、词法作用域以内的外部变量的值。换句话说,Block不仅 实现函数的功能,还能携带函数的执行环境。可以这样理解,Block其实包含两个部分内容Block执行的代码,这是在编译的时候已经生 阅读全文
posted @ 2013-08-05 18:36 yingkong1987 阅读(463) 评论(0) 推荐(0)