-
shift 2回で search everywhere
-
actionやcodeネームを検索して実行出来る
-
command + shift + A
-
Go fmt
-
command + alt + shift + F
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp ${JENKINS_HOME}/userContent/proguard.cfg proguard.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSInteger width = [[UIScreen mainScreen] applicationFrame].size.width; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//OK | |
[sheet showInView:[UIApplication sharedApplication].keyWindow]; | |
//NG | |
[sheet showInView: someViewController.view]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)advTimeKeeper:(NSNumber * )param{ | |
[NSThread sleepForTimeInterval:0.1]; | |
[self performSelectorInBackground:@selector(progress:) | |
withObject:[NSNumber numberWithFloat:[param floatValue]]]; | |
if([param floatValue]<1.0){ | |
[self performSelector:@selector(advTimeKeeper:) | |
withObject:[NSNumber numberWithFloat:([param floatValue]+0.03125)]]; | |
//not work afterDelay | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) refreshUIViewOnMainThread:(UIView*)view{ | |
[view performSelectorOnMainThread:@selector(setNeedsDisplay) | |
withObject:nil | |
waitUntilDone:YES]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURLResponse* response=nil;// not =nil; | |
NSError* error; | |
NSURL* url = [NSURL URLWithString:@"http://hogehoge"]; | |
NSURLRequest* request = [NSURLRequest requestWithURL:url]; | |
[NSURLConnection sendSynchronousRequest:req returningResponse:&response error:&error]; | |
NSLog(@"%@",response);// <null> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global color.ui true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Cocoa/Cocoa.h> | |
@interface MyOpenGLView : NSOpenGLView | |
{ | |
} | |
- (void) drawRect: (NSRect) bounds; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//スプライトを回転 | |
pSprite->setRotation(90); |