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
@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/",

Implementing a Strong Code-Review Culture

As an author

  • Provide more/sufficient context around changes
  • Linking to the issue isn't always enough
  • Challenge: 2 paragraphs of context

As a reviewer

  • Offer compliments in PRs when you learn or something is done well
  • Ask questions rather than make demands/commands, engage in conversation
//: Playground - noun: a place where people can play
import UIKit
struct Todo {
let id: NSUUID
let text: String
let complete: Bool
}
//: Mocks Playground
import UIKit
struct User {
}
struct PushNotificationController {
let registrar: PushNotificationRegistrar
init(registrar: PushNotificationRegistrar) {
// 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 {

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

protocol Able {
init?(foo: String)
}
protocol Ible {
init(bar: Int) throws
}
extension Able where Self: Ible {
init?(foo: String) {
@eliperkins
eliperkins / AorBandC.swift
Created May 17, 2016 15:26
(A || B) && C
import RxSwift
let A = Observable.just(())
let B = Observable.just(())
let C = Observable.just(())
let AorB = Observable.combineLatest(A, B) { (a, b) in
return ()
}

Keybase proof

I hereby claim:

  • I am eliperkins on github.
  • I am eliperkins (https://keybase.io/eliperkins) on keybase.
  • I have a public key whose fingerprint is 9366 A899 5661 5641 D9F3 4624 99EA EEFE A3AA 2D9A

To claim this, I am signing this object:

@eliperkins
eliperkins / Squares.swift
Last active February 4, 2018 16:48
Generate Super Bowl Squares in a Xcode Playground
//: Playground - noun: a place where people can play
//: Super Bowl Squares - noun: free money
import Foundation
import PlaygroundSupport
enum Player: String {
case eli = "Eli"
case brian = "Brian"
case brendan = "Brendan"