Skip to content

Instantly share code, notes, and snippets.

View ajRiverav's full-sized avatar

AJ Rivera ajRiverav

View GitHub Profile
@ajRiverav
ajRiverav / type-erasure.swift
Last active April 7, 2022 20:42
Type erasure in Swift: Example using Sequence and AnySequence, which are provided by the Swift Standard Library
//
// DO NOT USE - WORK IN PROGRESS
//
import Foundation
// "A sequence is a list of values that you can step through one at a time. The most common way to iterate over the elements of a sequence is to use a for-in loop.", per the documentation.
// Let's say one wanted to iterate over the sequence of strings ["apple", "bird", "cake"], such that
// the following code prints each value:
@ajRiverav
ajRiverav / Instacart-tools.txt
Last active December 16, 2018 20:20
Instacart's app -appropriately- shows the licenses of some tools they use in their app development. Here's the list (as of Dec 2018)
AFNetworking = A delightful networking framework for iOS, macOS, watchOS, and tvOS.
Alamofire
AlamofireNetworkActivityIndicator
Bolts-ObjC = Bolts is a collection of low-level libraries designed to make developing mobile apps easier.
FLEX = An in-app debugging and exploration tool for iOS
ISO8601
JLRoutes = URL routing library for iOS with a simple block-based API
JSQMessaagesViewController = An elegant messages UI library for iOS
JSQSystemSoundPlayer = A fancy Obj-C wrapper for Cocoa System Sound Services
Kingfisher = A lightweight, pure-Swift library for downloading and caching images from the web.