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
| NSArray *albums = @[[Album albumWithName:@"Random Access Memories" price:9.99f], | |
| [Album albumWithName:@"Clarity" price:6.99f], | |
| [Album albumWithName:@"Weekend in America" price:7.99f], | |
| [Album albumWithName:@"Weekend in America" price:7.90f], | |
| [Album albumWithName:@"Bangarang EP" price:2.99f]]; | |
| // Reversing an Array | |
| __unused NSArray *reversed = albums.reverseObjectEnumerator.allObjects; | |
| // PREDICATES |
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
Show hidden characters
| { | |
| "cmd" : ["$file"], | |
| "selector" : "source.shell", | |
| "shell" : "bash" | |
| } |
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
| #!/bin/sh | |
| echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
| read inputline | |
| name="$inputline" | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url="$inputline" |
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 "SenTestCase+MethodSwizzling.m" | |
| @interface ExampleTest : SenTestCase {} | |
| + (BOOL)trueMethod; | |
| + (BOOL)falseMethod; | |
| @end | |
| @implementation ExampleTest | |
| + (BOOL)trueMethod { return YES; } |
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
| @class GHTestCase; | |
| @interface GHTestCase (Swizzle) | |
| + (id)sharedMock; | |
| + (void)setSharedMock:(id)newMock; | |
| - (void)swizzle:(Class)target_class selector:(SEL)selector; | |
| - (void)deswizzle; |