Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Wondering why anyone puts up with me

Rob Bishop SaganRitual

:octocat:
Wondering why anyone puts up with me
View GitHub Profile
View lldb_cheat_sheet.md

LLDB Cheat Sheet

A complete gdb to lldb command map.

Print out

  • Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
  • p - Print primitive type
@SaganRitual
SaganRitual / SequenceDiff.swift
Last active Mar 15, 2018 — forked from sergiosette/diff5.swift
Compare two sequences, report back the common elements, plus deletes/inserts required to make the sequences match
View SequenceDiff.swift
// See how to use it at the bottom of this file
// Helper struct for sequenceDiff
public struct SequenceDiff<T1, T2> {
public let common: [(T1, T2)]
public let removed: [T1]
public let inserted: [T2]
public init(common: [(T1, T2)] = [], removed: [T1] = [], inserted: [T2] = []) {
self.common = common
self.removed = removed