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
-(NSData *) NSDataFromHexString:(NSString *) hexstr | |
{ | |
NSMutableData *data = [[NSMutableData alloc] init]; | |
NSString *inputStr = [hexstr uppercaseString]; | |
NSString *hexChars = @"0123456789ABCDEF"; | |
Byte b1,b2; | |
b1 = 255; | |
b2 = 255; |
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
-(NSString *) NSStringHexFormatFromData:(NSData *) data | |
{ | |
Byte *bytes = (Byte *)data.bytes; | |
NSMutableString *str = [[NSMutableString alloc] init]; | |
for (int i =0; i<data.length; i++) { | |
[str appendFormat:@"%02X",bytes[i]]; | |
if (i!= (data.length -1)) { | |
[str appendString:@":"]; |
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
//Trimming WhiteSpaces from String | |
NSString *str = @" String with whitespaces "; | |
str = [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; |
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
po NSHomeDirectory() |
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) asteriskCircleWidthRadius:(CGFloat)rad filled:(BOOL) fill border:(NSUInteger) borderW{ | |
borderW -= 1; | |
CGFloat dia = (rad + borderW) * 2; | |
CGFloat centerX,centerY; | |
centerX = centerY = dia/2.0; //-1 for | |
NSMutableString *op = [NSMutableString string]; | |
NSMutableString *opCircle = [NSMutableString string]; | |
[op appendString:@"\n"]; |
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
-->ViewController Callbacks | |
loadView Called | |
viewDidLoad called | |
ViewWillAppear called | |
WillLayoutSubviews called | |
DidLayoutSubviews called | |
viewDidAppear called | |
-->Location for XCode Plugins | |
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ |
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
gsutil rsync -rd -x \.git . gs://your-bucket |
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
prefix=/usr/local | |
exec_prefix=${prefix} | |
libdir=${exec_prefix}/lib | |
includedir=${prefix}/include | |
mmalLibDir=/opt/vc/lib | |
Name: raspiCam | |
Description: RaspiCam library | |
Version: 0.1.6 | |
Libs: -L${mmalLibDir} -L${exec_prefix}/lib -lraspicam -lraspicam_cv -lmmal -lmmal_core -lmmal_util |
OlderNewer