This week on Refactor.tv Sam and Steve talk about the Status Board, Mac, and Mac Apps.
@refactortv your favorite cocktails.
// Resizes the image according to the given content mode, taking into account the image's orientation | |
- (UIImage *)resizedImageWithContentMode:(UIViewContentMode)contentMode imageToScale:(UIImage*)imageToScale bounds:(CGSize)bounds interpolationQuality:(CGInterpolationQuality)quality { | |
//Get the size we want to scale it to | |
CGFloat horizontalRatio = bounds.width / imageToScale.size.width; | |
CGFloat verticalRatio = bounds.height / imageToScale.size.height; | |
CGFloat ratio; | |
switch (contentMode) { | |
case UIViewContentModeScaleAspectFill: | |
ratio = MAX(horizontalRatio, verticalRatio); |
//LayerCake Rename PhotoShop Script by Steve Derico http://www.stevederico.com | |
Credits: | |
// Rename Layers - Adobe Photoshop Script | |
// Requirements: Adobe Photoshop CS, or higher | |
// Description: renames and numbers all layers in the active document (using the supplied name pattern) | |
// Author: Trevor Morris (trevor@morris-photographics.com) | |
// Website: http://morris-photographics.com/ | |
// ============================================================================ | |
// Installation: |
<!DOCTYPE html> | |
<!-- This is Simple Create Object Web Form for Parse.com--> | |
<!-- Step 1 Insert Parse APP ID --> | |
<!-- Step 2 Insert Parse REST API KEY --> | |
<!-- Step 3 Insert Parse Class Name --> | |
<!--Javascript POST Code from Kevin Lacker - http://blog.parse.com/2012/01/19/javascript-and-user-authentication-for-the-REST-API/ --> | |
<html> |
This week on Refactor.tv Sam and Steve talk about the Status Board, Mac, and Mac Apps.
@refactortv your favorite cocktails.
This week on Refactor.tv Sam and Steve talk about the Facebook Home, Blink, and iOS7.
@refactortv your favorite cocktails.
How to Add AFIncrementalStore to an Existing Project
Add dependencies without Cocoapods
This week on Refactor.tv Sam and Steve talk about the WeMo, RX1, and Twitter.
@refactortv your favorite cocktails.
This week on Refactor.tv Sam and Steve talk about the Kickoff, Mailbox, and Hue.
@refactortv your favorite cocktails.
- (BOOL)application:(UIApplication *)application | |
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
NSURLCache *URLCache = [[NSURLCache alloc] initWithMemoryCapacity:8 * 1024 * 1024 diskCapacity:20 * 1024 * 1024 diskPath:nil]; | |
[NSURLCache setSharedURLCache:URLCache]; | |
[[AFNetworkActivityIndicatorManager sharedManager] setEnabled:YES]; | |
**SDScaffoldIndexViewController *scaffoldViewController = [[SDScaffoldIndexViewController alloc] initWithEntityName:@"ENTITYNAME" sortBy:@"PROPERTY" context:self.managedObjectContext];** |
These are the exact steps needed to take to create an syncing client-server app in 3 minutes. Watch this video for a complete demo. You will need to have CocoaPods Installed on your machine.
cd
to PROJECTNAME
directory thenpod install