This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// TableViewWithDynamicSections | |
// | |
// Created by Pawel Kijowski on 2/6/19. | |
// Copyright © 2019 Pawel Kijowski. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
func digitalRoot(of number: Int) -> Int { | |
if (number <= 0) { | |
return number | |
} else if (number % 9 == 0) { | |
return 9 | |
} else { | |
return number % 9 | |
} |