Skip to content

Instantly share code, notes, and snippets.

@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() {
// ...
@bogdanbolchis
bogdanbolchis / openTerm.sh
Last active December 11, 2015 14:25
Open Term
#!/bin/sh
open -a Terminal “$XcodeProjectPath”
# 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