This file contains hidden or 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
// | |
// NSObject+subscripts.h | |
// Created by Martin Santiago on 7/26/12. | |
// | |
#import <Foundation/Foundation.h> | |
// Add support for subscripting to the iOS 5 SDK. | |
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 60000 | |
@interface NSObject (subscripts) |
This file contains hidden or 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 <UIKit/UIKit.h> | |
@interface TESTStreamDelegate : NSObject <NSStreamDelegate> | |
@property (strong, nonatomic) NSInputStream *inputStream; | |
@property (strong, nonatomic) NSOutputStream *outputStream; | |
- (void) request; | |
@end |
This file contains hidden or 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 CRTransparentSearchFieldCell : NSSearchFieldCell { | |
BOOL _hasText; | |
} | |
@end |
This file contains hidden or 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
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"position"]; | |
[animation setDuration:0.08]; | |
[animation setRepeatCount:3]; | |
[animation setAutoreverses:YES]; | |
[animation setFromValue:[NSValue valueWithCGPoint: | |
CGPointMake([formContainer center].x - 20.0f, [formContainer center].y)]]; | |
animation setToValue:[NSValue valueWithCGPoint: | |
CGPointMake([formContainer center].x + 20.0f, [formContainer center].y)]]; | |
[[formContainer layer] addAnimation:animation forKey:@"position"]; |
This file contains hidden or 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
// requires UICKeyChainStore lib | |
NSString *uniqueIdentifier; | |
#if TARGET_IPHONE_SIMULATOR | |
uniqueIdentifier = @"SIMULATOR"; | |
#else | |
uniqueIdentifier = [UICKeyChainStore stringForKey:@"UUID" service:@"joshavant"]; | |
if(![uniqueIdentifier length] > 0) |
This file contains hidden or 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)drawRect:(CGRect)rect | |
{ | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); | |
const CGFloat components[8] = {0.0, 0.4, 0.0, 1.0, | |
0.0, 0.4, 0.0, 1.0}; | |
const CGFloat locations[2] = {0.0, 1.0}; | |
CGGradientRef gradient = CGGradientCreateWithColorComponents(colorSpace, components, locations, 2); | |
This file contains hidden or 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+OVSSTimeAdditions.h | |
// | |
// | |
// Created by Owen Voorhees on 3/22/11. | |
// Copyright 2011 Owen Voorhees. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or 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
-(float)compareString:(NSString *)originalString withString:(NSString *)comparisonString | |
{ | |
// Normalize strings | |
[originalString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; | |
[comparisonString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; | |
originalString = [originalString lowercaseString]; | |
comparisonString = [comparisonString lowercaseString]; | |
// Step 1 (Steps follow description at http://www.merriampark.com/ld.htm) |
This file contains hidden or 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
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
int main () | |
{ | |
pid_t child_pid; | |
child_pid = fork (); | |
if (child_pid > 0) { |
This file contains hidden or 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
<p><a href="http://www.visionmobile.com/blog/2012/08/the-rise-of-the-new-app-economy/" mce_href="http://www.visionmobile.com/blog/2012/08/the-rise-of-the-new-app-economy/"><img src="http://www.visionmobile.com/uploads/infographics/8/VMInfographic_DE12_800.png" mce_src="http://www.visionmobile.com/uploads/infographics/8/VMInfographic_DE12_800.png" border="0" alt="Developer Economics 2012 - The Rise of the New App Economy" /></a></p> |