Skip to content

Instantly share code, notes, and snippets.

View mredig's full-sized avatar
🤓
1s and 0s aren't going to put themselves in the right order.

Michael mredig

🤓
1s and 0s aren't going to put themselves in the right order.
View GitHub Profile
@mikeyh
mikeyh / SMJobBlessUtil-python3.py
Last active July 23, 2024 15:46
SMJobBlessUtil.py for Python3 / Xcode 13.3 / macOS Monterey 12.3 (with workaround for otool arm64 weirdness)
#! /usr/bin/python3
#
# File: SMJobBlessUtil.py
#
# Contains: Tool for checking and correcting apps that use SMJobBless.
#
# Written by: DTS
#
# Copyright: Copyright (c) 2012 Apple Inc. All Rights Reserved.
#
import UIKit
final class ContentSizedTableView: UITableView {
override var contentSize:CGSize {
didSet {
invalidateIntrinsicContentSize()
}
}
@marlonjames71
marlonjames71 / NSobjectProtocolConformance.swift
Last active July 17, 2020 15:55
NSObject Protocol Conformance
import Foundation
protocol NextObject: AnyObject, Hashable {
func isEqual(_ object: Any?) -> Bool
var hash: Int { get }
var superclass: AnyClass? { get }
func `self`() -> Self