Skip to content

Instantly share code, notes, and snippets.

pawelkijowskizimperium

Block or report user

Report or block pawelkijowskizimperium

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
@pawelkijowskizimperium
pawelkijowskizimperium / desym
Created Apr 29, 2019
Symbolicate iOS crash logs
View desym
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
symbolFile=${1}
shift
while test ${#} -gt 0
do
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash "${1}" "${symbolFile}" > "${1}.txt"
shift
done
View ViewController.swift
//
// ViewController.swift
// TableViewWithDynamicSections
//
// Created by Pawel Kijowski on 2/6/19.
// Copyright © 2019 Pawel Kijowski. All rights reserved.
//
import UIKit
View digitalRoot.swift
import UIKit
func digitalRoot(of number: Int) -> Int {
if (number <= 0) {
return number
} else if (number % 9 == 0) {
return 9
} else {
return number % 9
}
You can’t perform that action at this time.