码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果)
jquery 添加方法 : $.fn.方法名 = function(参数a,b,c){
$.fn.image_checked = function(self,status,img_body,csrf_token){ $(this).live('click', function(){ var index = $(this).index() var img_id = $('.'+se...
分类:Web程序   时间:2014-07-06 22:31:18    阅读次数:451
Python中文乱码问题
1:源代码#!/usr/bin/env pythonname = raw_input('请输入您的姓名:')print 'Hello,', name运行时出错:y@y:~/my_note/my_python$ python 5.py File "5.py", line 3SyntaxError:.....
分类:编程语言   时间:2014-07-06 21:57:42    阅读次数:236
iOS开发-微博客户端-基本界面搭建(01)
1>创建程序载入界面- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ //1>创建窗口 self.window = [[UIW.....
分类:移动开发   时间:2014-07-06 18:03:22    阅读次数:218
leetcode-Subsets
SubsetsTotal Accepted:13267Total Submissions:48509My SubmissionsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a sub...
分类:其他好文   时间:2014-07-06 17:50:21    阅读次数:170
Leetcode Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题目的意思是:给出一组字符串,按组返回拥有相同变位词的字符串解题思路是: ...
分类:其他好文   时间:2014-07-06 17:47:10    阅读次数:210
安装配置NFS服务
超级好的配置centos下服务的链接 http://www.server-world.info/en/note?os=CentOS_6&p=nfs http://linux.vbird.org/linux_server/0330nfs.php 以下是NFS最显而易见的好处: 本地工作站使用更少的磁盘...
分类:其他好文   时间:2014-07-06 16:37:55    阅读次数:188
expect自动远程拷贝脚本
expect自动远程拷贝脚本,利用rsync命令,脚本内容如下:#!/usr/bin/expect --proc Usage_Exit {self} { puts "" puts "Usage: $self ip user passwd port sourcefile d...
分类:其他好文   时间:2014-07-06 16:24:17    阅读次数:333
effective c++ 条款10 handle assignment to self operator =
非强制性,但是个好习惯当使用连锁赋值时很有用x=y=z=10;class Window{ public: Window& operator=(int size) { ... return *this; }}这个规则适用于 -,+, +=,-= etc
分类:编程语言   时间:2014-07-06 16:14:49    阅读次数:264
通过APPID从appStore获取应用最新信息
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initW...
分类:移动开发   时间:2014-07-06 15:36:26    阅读次数:366
防止 NSTimer retain 作为 target 的 self
先吐槽一下这个标题,空格略蛋疼,不像中文,但是不写空格看上去则更诡异,求解决方案……NSTimer会retain它的target,这样如果在控制器当中定义一个NSTimer,target指定为self,则会引起循环引用。解决方案和防止block引用self一样,第一步需要把NSTimer的操作封装到...
分类:其他好文   时间:2014-07-06 14:44:21    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!