从cookie中取值:var userid = $.cookie("remoteuserid");例子:function delUser() { var table = $('#grid-user-list'); var chkBoxes = table.find('input.invechk...
分类:
其他好文 时间:
2014-07-16 21:37:48
阅读次数:
218
1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误:Could not find a storyboard named 'Main' in bundle NSBundle2、删除main.storyboard后,需要在AppDelegate.m中初始化...
分类:
其他好文 时间:
2014-07-16 20:43:35
阅读次数:
151
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.思路:这道题主要是找出重叠结点和相同斜率之和。此时我们要判断有斜率和无斜率个数,并判断那个数量比较大,...
分类:
其他好文 时间:
2014-07-16 20:26:01
阅读次数:
123
1.递归删除指定目录下的 .git、.svn 文件find . -name .git | xargs rm -frfind . -name .svn | xargs rm -rf第一条倒还不常用,因为用 git 做版本管理的时候,只在根目录下生成一个 .git 目录,删掉这一个就行了~因此,删除 ....
分类:
其他好文 时间:
2014-07-16 19:55:02
阅读次数:
182
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each num...
分类:
其他好文 时间:
2014-07-16 19:53:49
阅读次数:
238
题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ...
分类:
其他好文 时间:
2014-07-16 19:48:18
阅读次数:
263
linux按照时间查找文件需要用到一个根据最后修改时间来处理的脚本。前面有个有关find的基本用法,根据文件大小,类型什么的,这个是关于时间的。linux 文件的三种时间(以 find 为例):atime 最后一次访问时间, 如 ls, more 等, 但 chmod, chown, ls, sta...
分类:
系统相关 时间:
2014-07-16 19:39:31
阅读次数:
401
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.题解:思路比较简单,每条直线都可以表示为y=kx+b,所以对于任意三点,如果它们共线,那么它们中任意两点的...
分类:
其他好文 时间:
2014-07-14 10:02:12
阅读次数:
187
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-07-14 10:01:38
阅读次数:
168