Skip to content

Instantly share code, notes, and snippets.

View jkereako's full-sized avatar

Jeff Kereakoglow jkereako

View GitHub Profile
@jkereako
jkereako / lldb-cheatsheet.md
Last active July 2, 2018 23:16
LLDB cheat sheet

Print frame variables Reads variables in the current stack frame

(lldb) frame variable

Print general purpose registers Useful for EXC_BAD_ACCESS crashes

(lldb) register read
@sharplet
sharplet / SimpleNetworkingExample.swift
Created September 14, 2017 21:37
Example Source Code for "A Simple Approach to Thread-Safe Networking in iOS Apps"
import Foundation
import PlaygroundSupport
enum URLResult {
case response(Data, URLResponse)
case error(Error, Data?, URLResponse?)
}
extension URLSession {
@discardableResult