Skip to content

Instantly share code, notes, and snippets.

Jabari Bell alonecuzzo

Block or report user

Report or block alonecuzzo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alonecuzzo
alonecuzzo / errors.swift
Created Jan 31, 2017
Notes from Errors chat
View errors.swift
//let's talk about the different error approaches in swift
//1. optionals
//2. throw/catch
//3. Result
enum Result<A> {
case failure(Error)
case success(A)
}
View getBrews.swift
//
// ViewController.swift
// Brews
//
// Created by Jabari Bell on 8/28/16.
// Copyright © 2016 codemitten. All rights reserved.
//
import UIKit
import Alamofire
View botz.md
View apnHandOff.md

State of things: The story functionally works. There is an issue IOS-364 that was created as a result of a conversation on IOS-125 and findings by Stephanie. Those details are on the referenced stories in the Stories of Interest section.

###Stories of Interest

  1. https://paperless.atlassian.net/browse/IOS-125 - main story
  2. https://paperless.atlassian.net/browse/IOS-364 - currently blocking the main story. There's a usability issue that Corey suggested a solution for. He made the comment on the IOS-125 story. IOS-364 is an investigation into changing the settings panel. We'll also need design direction.

###Code

View notesFromDavid.swift
/**
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
*/
import UIKit
// Dealing with having to override init(coder:)
View stringArrayExtensions.swift
var str = "Hello, playground"
protocol TestProtocol {
typealias T
}
protocol AnotherProtocol {}
extension TestProtocol where Self.T == String {}
View snail.swift
//convert to ruby
//: Playground - noun: a place where people can play
import UIKit
let result = [1, 2, 3, 4, 5, 10, 15, 20, 25, 24, 23, 22, 21, 16, 11, 6, 7, 8, 9, 14, 19, 18, 17, 12, 13]
enum Direction {
case Right, Left, Up, Down
@alonecuzzo
alonecuzzo / ithunk.swift
Created Feb 2, 2016
Thunk Presentation
View ithunk.swift
import UIKit
//POP is great, but there are some gotchas when dealing with protocols that have a Self requirement.
// Self
protocol OwlType {
func hootWithOwlType(owl: Self)
}
class GreatHornedOwl: OwlType {
View thunking.swift
//: Playground - noun: a place where people can play
import UIKit
// Self
protocol OwlType {
func hootWithOwlType(owl: Self)
}
You can’t perform that action at this time.