Skip to content

Instantly share code, notes, and snippets.

# Remove Derived Data
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -frd ~/Library/Caches/com.apple.dt.Xcode/*
# Open Gitup at the project’s path
open -a GitUp “$XcodeProjectPath”
# Stash & Pull & Pop, and show results in TextEdit
exec &>/var/tmp/log.txt
git stash && git pull && git stash pop
@bogdanbolchis
bogdanbolchis / openTerm.sh
Last active December 11, 2015 14:25
Open Term
#!/bin/sh
open -a Terminal “$XcodeProjectPath”
@bogdanbolchis
bogdanbolchis / Multiple Cell Prototypes
Last active December 12, 2015 08:14
UITableView with multiple prototypes
/// We use a base class for the cells on the screen. This helps with consistency.
class BaseCell: UITableViewCell {
var viewModel: ViewModel? {
didSet {
updateSubviews()
}
}
func updateSubviews() {
// ...