码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
MACOS获得 CGContextRef 获得图片数据类型转换 NSImage、CIImage、CGImageRef
将NSImage转换为CIImage#import // convert NSImage to bitmapNSImage * myImage= [self currentImage];NSData* tiffData = [myImage TIFFRepresentation];NSBitmapI...
分类:其他好文   时间:2014-07-22 23:16:13    阅读次数:586
[leetcode] Anagrams
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.输入一个字符串数组,返回所有回文构词法(anagrams)的字符串,所谓回...
分类:其他好文   时间:2014-07-22 23:15:54    阅读次数:440
python运算符重载2
1、重载构造函数和减法运算__init__,__sub__ #file number.py class Number: def __init__(self,data): self.data = data def __sub__(self,other): return Number(se...
分类:编程语言   时间:2014-07-22 23:15:36    阅读次数:510
Chap3: question: 11 - 18
11. double 数值的整数次方note: 浮点数表示时有误差,判等时必须自己根据精度要求实现。#include #include using namespace std;bool equal(double num1, double num2) // key 1{ if(num1 - num2 ...
分类:其他好文   时间:2014-07-22 23:11:56    阅读次数:436
Single Number
Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runti...
分类:其他好文   时间:2014-07-22 23:07:14    阅读次数:337
IOS_Note
关键字:可以搜索这些关键字找到具体内容退回输入键盘、CGRect、CGPoint & CGSize、设置透明度、设置背景色、自定义颜色、竖屏、横屏、状态栏高 (显示时间和网络状态)、导航栏、工具栏高(返回)、隐藏状态栏、横屏、屏幕变动检测、全屏、自动适应父视图大小、定义按钮、设置视图背景图片、自定义...
分类:移动开发   时间:2014-05-01 13:49:13    阅读次数:707
ios 隐藏状态栏,时间
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {         // iOS 7         [self prefersStatusBarHidden];         [self performSelector:@selector(setNeedsStatusBarAppear...
分类:移动开发   时间:2014-04-29 13:44:20    阅读次数:432
Leetcode:Minimum Path Sum 最小路径和
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at...
分类:其他好文   时间:2014-04-28 10:46:41    阅读次数:311
Docker常用命令
Usage: docker [OPTIONS] COMMAND [arg...]  -H=[unix:///var/run/docker.sock]: tcp://host:port to bind/connect to or unix://path/to/socket to use A self-sufficient runtime for linux containers. Co...
分类:其他好文   时间:2014-04-28 10:17:41    阅读次数:359
降低UIViewController切换的耦合
我们一般切换UIViewController的时候用的是如下代码 #import "UIViewControllerDemo.h" UIViewControllerDemo *vc = [UIViewControllerDemo alloc] initWithNibName:nil bundle:nil] autorelease]; [self.navigationController pushViewController:vc animated:YES];...
分类:其他好文   时间:2014-04-27 21:21:00    阅读次数:294
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!