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 <Foundation/Foundation.h> | |
| void method1(NSArray *numbers) | |
| { | |
| NSArray *sorted = [numbers sortedArrayUsingSelector:@selector(compare:)]; | |
| } | |
| void method2(NSArray *numbers) | |
| { | |
| NSNumber *max=[numbers valueForKeyPath:@"@max.doubleValue"]; |
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
| expr -- (void)printf("[%s, %s]\n",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) ) |
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
| # | |
| # c.f. StackOverflow question/answer here: http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.5 | |
| # | |
| # Latest Change: | |
| # - The "copy headers" section now respects the build setting for the location of the public headers | |
| # - Opens the directory with the universal library after build (Can be annoying) | |
| # | |
| # Purpose: |
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
| ########################################## | |
| # | |
| # c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.82 | |
| # | |
| # Latest Change: | |
| # - MORE tweaks to get the iOS 10+ and 9- working | |
| # - Support iOS 10+ | |
| # - Corrected typo for iOS 1-10+ (thanks @stuikomma) |
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
| # CheckOutActive - Check the active window out for modification | |
| # | |
| # Usage: Called by a userdefined menu item | |
| # | |
| # CheckOutActive uses the ProjectInfo command to determine the | |
| # parent project for the file open as the Active window. Once this | |
| # project has been determined, the file open as the Active window | |
| # can be properly checked out. | |
| # | |
| # © Apple Computer, Inc. 1988 |
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
| SSH_USER = 'root' | |
| SSH_HOST = 'www.example.com' | |
| SSH_DIR = '/var/www/html/www.example.com' | |
| desc "Build the website from source" | |
| task :build do | |
| puts "## Building website" | |
| status = system("middleman build --clean") | |
| puts status ? "OK" : "FAILED" | |
| 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
| /* | |
| Distributed under The MIT License: | |
| http://opensource.org/licenses/mit-license.php | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to |
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)handleError:(NSError *)error { | |
| NSString *errorMessage = [error localizedDescription]; | |
| UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error Message" | |
| message:errorMessage | |
| delegate:self | |
| cancelButtonTitle:@"Cancel" | |
| otherButtonTitles:@"Retry", nil]; | |
| [alertView show]; | |
| [alertView release]; | |
| } |
NewerOlder