- Introduction to Functional Programming Johannes Weiß - http://kcy.me/1ngiv
- ReactiveCocoa at MobiDevDay Andrew Sardone - http://kcy.me/1nhl3
- The Future Of ReactiveCocoa Justin Spahr-Summers - http://kcy.me/1nhs7
- Enemy of the State Justin Spahr-Summers - http://kcy.me/1njzs
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - http://kcy.me/1pyva
- Functioning as a Functionalist Andy Matuschak - http://kcy.me/22o45
- Controlling Complexity in Swift Andy Matuschak - http://kcy.me/23sc9
- Functional and reactive programming with Swift Ash Furrow -
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
#Amazon Elastic Transcoder (ET) | |
#ET supports presets for transcoding | |
#http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/preset-settings.html | |
//Let's put our video file to AWS S3. $region = "eu-west-1"; | |
$folder = "source_videos/"; //init class to work with s3. | |
$s3 = new AmazonS3(); //get real file path | |
$real_video_file = str_replace(base_url(), ROOT, $some_file); //generate new unique video name | |
$unique_string = md5(uniqid() . time()); | |
$video_file = $folder . $unique_string; //send out file to s3 storage |
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
// | |
// AppDelegate.m | |
// AnimationExamplesiPhone | |
// | |
// Created by Eric Allam on 10/05/2014. | |
#import "AppDelegate.h" | |
#pragma mark - UIColor Additions |
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
var str = "Hello Swift!" | |
var aStr = "Hello World!" | |
str.startIndex // first index | |
str.endIndex // end index | |
str.startIndex.distanceTo(str.endIndex) // string length | |
str.characters.count // string length | |
str[str.startIndex.advancedBy(4)] // get character at index 4 |
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
{ | |
"Afghanistan": { | |
"country_code": "+93", | |
"deliverability_rate": 77 | |
}, | |
"Albania": { | |
"country_code": "+355" | |
}, | |
"Algeria": { | |
"country_code": "+213", |
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
source 'https://github.com/CocoaPods/Specs.git' | |
use_frameworks! | |
link_with ‘MyAppName’ | |
platform :ios, '8.0' | |
inhibit_all_warnings! | |
target ‘MyAppName’ do | |
pod 'Parse' | |
pod 'ParseFacebookUtilsV4' | |
pod 'Reveal-iOS-SDK', :configurations => ['Debug'] | |
pod 'FBSDKCoreKit' |
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
[self.apiClient retrieveConnectedServicesWithSuccessBlock:^(NSDictionary *services) { | |
NSArray *facebookTokens = services[@"facebook"]; | |
if (facebookTokens.count == 0) { | |
return; | |
} | |
NSDictionary *mostRecentFacebookTokenDict = facebookTokens[0]; | |
NSNumber *refreshTimeNumber = mostRecentFacebookTokenDict[@"refreshTime"]; | |
NSDate *refreshDate = [NSDate dateWithTimeIntervalSince1970:[refreshTimeNumber doubleValue]]; |
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 CustomView.xib, set File's Owner to CustomView. | |
// Link the top level view in the XIB to the contentView outlet. | |
class CustomView : UIView { | |
@IBOutlet private var contentView:UIView? | |
// other outlets | |
override init(frame: CGRect) { // for using CustomView in code | |
super.init(frame: frame) | |
self.commonInit() |
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
// | |
// ABSpringDemoViewController.m | |
// Springy | |
// | |
#import "ABSpringDemoViewController.h" | |
@interface ABSpringDemoViewController () <UITableViewDataSource, UITableViewDelegate> { | |
UITableView *_tableView; | |
CADisplayLink *_displayLink; |