- (void)imageBg{ UIImage *oldImage = [UIImage imageNamed:@"me"]; UIGraphicsBeginImageContextWithOptions(self.view.frame.size, NO, 0.0); [oldImage dra....
分类:
移动开发 时间:
2014-08-27 21:55:28
阅读次数:
228
- (void)addStripe{ [super viewDidLoad]; // self.view.backgroundColor = [UIColor redColor]; // 1.创建一行背景图片 CGFloat rowW = self.view.frame.size.width;//....
分类:
移动开发 时间:
2014-08-27 21:54:28
阅读次数:
364
PHP_SELF、 SCRIPT_NAME、 REQUEST_URI区别$_SERVER[PHP_SELF], $_SERVER[SCRIPT_NAME], $_SERVER['REQUEST_URI'] 在用法上是非常相似的,他们返回的都是与当前正在使用的页面地址有关的信息,这里列出一些相关的例....
分类:
Web程序 时间:
2014-08-27 20:24:18
阅读次数:
180
class Solution: # @param num, a list of integer # @return a list of lists of integers def permute(self, num): length=len(num) i...
分类:
编程语言 时间:
2014-08-27 20:11:28
阅读次数:
200
## SMART 简介 S.M.A.R.T.,全称为“Self-Monitoring Analysis and Reporting Technology”,即“自我监测、分析及报告技术”。是一种自动的硬盘状态检测与预警系统和规范。通过在硬盘硬件内的检测指令对硬盘的硬...
分类:
其他好文 时间:
2014-08-27 19:04:18
阅读次数:
1094
1 Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear run...
分类:
其他好文 时间:
2014-08-27 18:38:28
阅读次数:
174
[ 问题: ]
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before implementing one....
分类:
其他好文 时间:
2014-08-27 16:43:58
阅读次数:
177
/**
*@category url_type 此方法是进行url模式pathinfo模式的处理
*/
function url_type(){
//url模式 控制器--方法的获取
$url = $_SERVER['PHP_SELF']."";
//echo $url,"";
$num =strpos...
分类:
Web程序 时间:
2014-08-27 16:40:48
阅读次数:
167
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路:对每个string进行排序,并使用map记录排序之后值相同的stri...
分类:
其他好文 时间:
2014-08-27 14:39:37
阅读次数:
147
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
UITapGestureRecognizer *doubleTap =[[UITapGestureRecognizer alloc] initWithTarget:self ac...
分类:
其他好文 时间:
2014-08-27 13:09:17
阅读次数:
153