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
//: Playground - noun: a place where people can play | |
import UIKit | |
// Self | |
protocol OwlType { | |
func hootWithOwlType(owl: Self) | |
} |
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
// | |
// ViewController.swift | |
// Styles | |
// | |
// Created by Jabari Bell on 1/22/16. | |
// Copyright © 2016 Jabari Bell. All rights reserved. | |
// | |
import UIKit |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
//"2+3+4" | |
//"234++" | |
func polish(input: String) -> String { |
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
// | |
// StopService.swift | |
// MetroBurb | |
// | |
// Created by Jabari Bell on 10/26/15. | |
// Copyright © 2015 Code Mitten. All rights reserved. | |
// | |
import Foundation | |
import RxSwift |
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
class CustomTableHeaderView: UIView { | |
//MARK: Property | |
let label = UILabel(frame: CGRectZero) | |
let backbutton = UIButton(frame: CGRectZero) | |
//MARK: Method | |
override init(frame: CGRect) { | |
super.init(frame: frame) |
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
import UIKit | |
import SnapKit | |
import RxSwift | |
import RxCocoa | |
enum CustomPlaceTableViewCellType { | |
case PlaceName, StreetAddress, City, State, ZipCode | |
var placeHolder: String { | |
switch self { |
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
// | |
// ViewController.swift | |
// SnapKitTest | |
// | |
// Created by Robert Payne on 10/11/15. | |
// Copyright © 2015 Zwopple Limited. All rights reserved. | |
// | |
import SnapKit | |
import UIKit |
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
import UIKit | |
import ReactiveCocoa | |
extension NSTimer { | |
/** | |
Creates and schedules a one-time `NSTimer` instance. | |
:param: delay The delay before execution. | |
:param: handler A closure to execute after `delay`. | |
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
struct Datasource { | |
static let _items = ["Cats", "Dogs", "Crows", "Lions", "Owls", "Hawks", "Fish"] | |
static let items = Datasource._items + Datasource._items | |
static func validIndiciesForSelectedIndex(index: Int) -> (Int, Int) { | |
var offset: Int = 0 |
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
//adding without currying | |
func add(a: Int, b:Int) -> Int { | |
return a + b | |
} | |
//when we use the swift curry form this is what is happening behind the scenes | |
func addCurry(a: Int) -> (Int -> Int) { |