Skip to content

Instantly share code, notes, and snippets.

View stevederico's full-sized avatar

Steve Derico stevederico

View GitHub Profile

Episode 35

Summary

This week on Refactor.tv Sam and Steve talk about the Facebook Home, Blink, and iOS7.

Drinks

@refactortv your favorite cocktails.

@stevederico
stevederico / gist:5316737
Last active December 15, 2015 20:09
How to Add AFIncrementalStore to an Existing Project

How to Add AFIncrementalStore to an Existing Project

Add dependencies without Cocoapods

  • Add Core Data
  • Add Mobile Core Services
  • Add System Configuration
  • Add AFIncrementalStore
  • Add AFNetworking
  • Add InflectorKit

Episode 32

Summary

This week on Refactor.tv Sam and Steve talk about the Kickoff, Mailbox, and Hue.

Drinks

@refactortv your favorite cocktails.

@stevederico
stevederico / gist:4751596
Last active December 12, 2015 09:29
application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- (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];**
@stevederico
stevederico / gist:4676452
Last active December 11, 2015 23:28
AFNetworking + AFIncrementalStore + SDScaffoldKit = Client/Server App

AFNetworking + AFIncrementalStore + SDScaffoldKit = Client/Server App

SDScaffoldKit with AFNetworking Template

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.

  1. Install CocoaPods
  2. Create New Project with AFNetworking Xcode Template
  3. Close current project. cd to PROJECTNAME directory then
  4. Run pod install
@stevederico
stevederico / gist:3982673
Created October 30, 2012 20:09
Episode 12

Episode 12

Summary

This week on Refactor.tv Sam and Steve talk about the recent Apple Event. The guys cover news on iPad, the new iPad Mini, and a word based iOS game.

Drinks

@refactortv us a drink you would like to see on the show.

Episode 11

Summary

This week on Refactor.tv Sam and Steve talk about the new Apple Event. The guys cover news on iOS6, iBooks, 13" Retina Macbook, Mac Mini, and the new iMac.

Drinks

@refactortv us a drink you would like to see on the show.

Get the Bookmarklet here: javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g%3Ef.fn.jquery||h(f)){c=a.createElement(%22script%22);c.type=%22text/javascript%22;c.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+g+%22/jquery.min.js%22;c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d==%22loaded%22||d==%22complete%22)){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,%221.3.2%22,function($,L){var%20output%20=%20'First%20Name,Last%20Name,Email,Phone,Title,Company';var%20companies%20=%20$(%22.x-grid3-col-COMPANYNAME%22);var%20titles%20=%20$(%22.x-grid3-col-TITLE%22);var%20names%20=%20$(%22.GMUAMTYCBK%20%3E%20.GMUAMTYCFI%22);%20%20%20%20%20%20%20%20var%20i%20=%200;%20%20%20%20%20%20%20%20names.each(function(index,value)%20{%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20name%20=%20$(this).text();%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20partsOfStr%20=%20name.split(',');%20%20%20%20%20%20%20%20%20