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
{ | |
"font_face": "SF Mono", | |
"font_size": 14.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"save_on_focus_lost": true, | |
"show_full_path": true | |
} |
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
protocol NibBased { | |
static var nibName: String { get } | |
} | |
extension NibBased { | |
static var nibName: String { | |
return String(describing: self) | |
} | |
} |
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 Foundation | |
import UIKit | |
protocol NibBased { | |
static var nibName: String { get } | |
} | |
extension NibBased { | |
static var nibName: String { | |
return String(describing: self) |
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
extension UIColor { | |
convenience init(hex: String) { | |
let trimmedString = hex.replacingOccurrences(of: "#", with: "") | |
var uint32Value: UInt32 = 0 | |
Scanner(string: trimmedString).scanHexInt32(&uint32Value) | |
let intValue = Int(uint32Value) |
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 | |
protocol NibBased { | |
static var nibName: String { get } | |
} | |
extension NibBased { | |
static var nibName: String { | |
return String(describing: self) |
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
-- Launch System Preferences | |
tell application "System Preferences" to activate | |
-- Open the 'Sound' preferences and select the 'Output' tab | |
tell application "System Preferences" | |
reveal anchor "output" of pane id "com.apple.preference.sound" | |
end tell | |
tell application "System Events" to tell process "System Preferences" |