Skip to content

Instantly share code, notes, and snippets.

@wanewang
wanewang / install.md
Last active June 10, 2021 02:43 — forked from hlb/Brewfile
clean install

System Preferences

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Display App Swithcer on all screens
defaults write com.apple.Dock appswitcher-all-displays -bool true

# Set a shorter Delay until key repeat		
@wanewang
wanewang / gist:c830c09af7d8eba6d1df
Last active January 4, 2016 16:50 — forked from bwhiteley/gist:049e4bede49e71a6d2e2
Initialize Swift subclass of UIView, designed in .xib
// Create CustomView.xib, set File's Owner to CustomView.
class CustomView : UIView {
// other outlets
override init(frame: CGRect) { // for using CustomView in code
super.init(frame: frame)
self.commonInit()
}