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
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: | |
error: There was an error while attempting to start the app | |
error: Error spawning drone | |
error: Script prematurely exited | |
error: | |
error: This type of error is usually a user error. | |
error: Error output from app: | |
error: |
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
//Create an instance of MPMusicPlayerController | |
MPMusicPlayerController* myPlayer = [MPMusicPlayerController iPodMusicPlayer]; | |
//Create a query that will return all songs by The Beatles grouped by album | |
MPMediaQuery* query = [MPMediaQuery songsQuery]; | |
[query addFilterPredicate:[MPMediaPropertyPredicate predicateWithValue:@"The Beatles" forProperty:MPMediaItemPropertyArtist comparisonType:MPMediaPredicateComparisonEqualTo]]; | |
[query setGroupingType:MPMediaGroupingAlbum]; | |
//Pass the query to the player | |
[myPlayer setQueueWithQuery:query]; |
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
MPMediaQuery* query = [MPMediaQuery songsQuery]; | |
[query addFilterPredicate:[MPMediaPropertyPredicate predicateWithValue:@"The Beatles" forProperty:MPMediaItemPropertyArtist comparisonType:MPMediaPredicateComparisonEqualTo]]; | |
[query setGroupingType:MPMediaGroupingAlbum]; |
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
//Stack - FILO (first in, last out) | |
DKStack* stack = [[DKStack alloc] init]; | |
[stack push:foo]; //Push foo on the stack | |
[stack push:bar]; //Push bar on the stack | |
[stack pop]; //Pop top element (bar) from the stack | |
[stack top]; //Now returns foo | |
[stack pop]; //Pop top element (foo) from the stack |