<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| /*! | |
| *\brief Method to get an array of index path from a NSRange | |
| * This method can be used to get an array of indexPath for table updates, | |
| * just one range and section each time. | |
| *\param range The range you need for the indexPath | |
| *\param the section you want for the indexPath | |
| *\return A Mutable array of NSIndexPath | |
| */ | |
| + (NSMutableArray*)arrayOfIndexPathFromRange:(NSRange)range section:(NSUInteger)section{ |
| /*! | |
| *\brief Method to serialize arrays | |
| * This method serialized elements from an array an fill the space with the urlcode for querys | |
| *\param array an array of nsstrings to be serialized | |
| *\return NSString* a string with all the elements on the array serialized | |
| */ | |
| + (NSString*)stringSerializerForQuery:(NSArray*)array{ | |
| NSMutableString *returnString; | |
| #!/bin/bash | |
| #You can run this gist inside the folder that holds the venv folder or paste the following in a Terminal | |
| #This file assume your virtual environment is under the folder venv | |
| DIRECTORY=$(pwd) ; echo source $DIRECTORY/venv/bin/activate > .env |
| - (void)presentViewControllerFromVisibleViewController:(UIViewController *)viewControllerToPresent | |
| { | |
| if ([self isKindOfClass:[UINavigationController class]]) { | |
| UINavigationController *navController = (UINavigationController *)self; | |
| [navController.topViewController presentViewControllerFromVisibleViewController:viewControllerToPresent]; | |
| } else if (self.presentedViewController) { | |
| [self.presentedViewController presentViewControllerFromVisibleViewController:viewControllerToPresent]; | |
| } else { | |
| [self presentModalViewController:viewControllerToPresent animated:YES]; | |
| } |
| #!/bin/bash | |
| # This file create a folder called resizedIcons in the same folder than the file | |
| # in the first parameter and place inside all the resized copies | |
| # The filename.png to resize | |
| ITUNES_ARTWORK="$1" | |
| FOLDER0=$(dirname "$ITUNES_ARTWORK") | |
| FOLDER="${FOLDER0}/ResizedIcons" | |
| # create the new folder |
| ``` | |
| git clone https://github.com/user/yourRepo | |
| cd repo | |
| git remote rename origin upstream | |
| git remote add origin https://[email protected]/yourAccount/yourRepo | |
| git push --mirror origin | |
| ``` | |
| Then make sure master will pull from the bitbucket repo (upstream being the name of the remote referring to the original GitHub repo) | |
| ``` |