Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| // put this in your AppDelegate | |
| - (void)changeRootViewController:(UIViewController*)viewController { | |
| if (!self.window.rootViewController) { | |
| self.window.rootViewController = viewController; | |
| return; | |
| } | |
| UIView *snapShot = [self.window snapshotViewAfterScreenUpdates:YES]; | |
| [viewController.view addSubview:snapShot]; | |
| self.window.rootViewController = viewController; |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| #!/bin/bash -x | |
| # Copyright (c) 2011 Float Mobile Learning | |
| # http://www.floatlearning.com/ | |
| # Extension Copyright (c) 2013 Weptun Gmbh | |
| # http://www.weptun.de | |
| # Extension Copyright (c) 2013 FoundryLogic LLC | |
| # http://foundrylogic.com | |
| # | |
| # Extended by Ronan O Ciosoig January 2012 |
| ########################################## | |
| # | |
| # 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) |
| CGPathRef CGPathCreateRoundRect( const CGRect r, const CGFloat cornerRadius ) | |
| { | |
| CGMutablePathRef p = CGPathCreateMutable() ; | |
| CGPathMoveToPoint( p, NULL, r.origin.x + cornerRadius, r.origin.y ) ; | |
| CGFloat maxX = CGRectGetMaxX( r ) ; | |
| CGFloat maxY = CGRectGetMaxY( r ) ; | |
| CGPathAddArcToPoint( p, NULL, maxX, r.origin.y, maxX, r.origin.y + cornerRadius, cornerRadius ) ; |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)