Skip to content

Instantly share code, notes, and snippets.

@warren-gavin
warren-gavin / APLaunchNewStoryboardSegue.swift
Last active December 1, 2015 13:19
Custom segue class that launches a new storyboard.
//
// APLaunchNewStoryboardSegue.swift
// APLaunchNewStoryboardSegue gist
//
// Created by Warren Gavin on 30/11/15.
// Copyright © 2015 Apokrupto. All rights reserved.
//
import UIKit
@warren-gavin
warren-gavin / Podfile
Created July 25, 2016 08:26
Swift 3 post installer for Podfiles
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'YES'
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end

Code snippets for the blog post "A Math-er of fact"

@warren-gavin
warren-gavin / mvvm-rrosrws.md
Last active November 5, 2016 15:59
Code snippets for the blog post on MVC-RS
import Foundation
import FirebaseDatabase
import AcmeJSONLib
struct Opinion {
let text: String
fileprivate let soapBoxing: Bool
}
// MARK: - Opinions stored in Firebase