Skip to content

Instantly share code, notes, and snippets.

View eliperkins's full-sized avatar
🍞
Let’s get this bread.

Eli Perkins eliperkins

🍞
Let’s get this bread.
View GitHub Profile
protocol Able {
init?(foo: String)
}
protocol Ible {
init(bar: Int) throws
}
extension Able where Self: Ible {
init?(foo: String) {

Apple TV Tech Talks

tvOS Fundamentals

  • Living Room experience
  • Always connected
  • Powerful hardware
  • Separate SDK with optional Universal Purchase
  • Developer tools and tech

Designing for tvOS

// Given that a protocol unifies two types: BlogPost and PhotoPost...
protocol PostType {
var title: String { get }
}
struct BlogPost: PostType {
let title = "My Hot New Blog Post"
}
struct PhotoPost: PostType {
//: Playground - noun: a place where people can play
import UIKit
struct Todo {
let id: NSUUID
let text: String
let complete: Bool
}
@eliperkins
eliperkins / Helpshift-4.12.1.podspec.json
Last active August 29, 2015 14:26
Corrected Helpshift Podspec (supports `use_frameworks!`)
{
"name": "Helpshift",
"version": "4.12.1",
"summary": "Customer service helpdesk for mobile applications.",
"license": {
"type": "Commercial",
"text": "See http://www.helpshift.com/terms/"
},
"homepage": "http://www.helpshift.com/",
/** The token structure. */
typedef struct yaml_token_s {
/** The token type. */
yaml_token_type_t type;
/** The token data. */
union {
/** The stream start (for @c YAML_STREAM_START_TOKEN). */
RAC(self, results) = [self.searchCommand.executionSignals flattenMap:^(RACSignal *querySearchSignal) {
@strongify(self);
return [[querySearchSignal
concat:[self.searchMoreCommand.executionSignals concat]]
scanWithStart:@[] reduce:^(NSArray *running, NSArray *next) {
return [running arrayByAddingObjectsFromArray:next];
}];
}];
@eliperkins
eliperkins / Mantle.podspec.json
Last active August 29, 2015 14:04
Mantle.podspec.json
{
"name": "Mantle",
"version": "2.0",
"summary": "Model framework for Cocoa and Cocoa Touch.",
"homepage": "https://github.com/Mantle/Mantle",
"license": "MIT",
"authors": {
"GitHub": "support@github.com"
},
"source": {
@eliperkins
eliperkins / AFAmazonS3Client.podspec
Last active August 29, 2015 14:03
AFAmazonS3Client compatible with AFNetworking 2.2.x
Pod::Spec.new do |s|
s.name = "AFAmazonS3Client"
s.version = "2.2.0"
s.summary = "AFNetworking Client for the Amazon S3 API."
s.homepage = "https://github.com/AFNetworking/AFAmazonS3Client"
s.social_media_url = "https://twitter.com/AFNetworking"
s.license = 'MIT'
s.author = { "Mattt Thompson" => "m@mattt.me" }
s.source = { :git => "https://github.com/AFNetworking/AFAmazonS3Client.git",
:tag => "2.0.0" }