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 SwiftUI | |
import PlaygroundSupport | |
struct Contact: Identifiable { | |
// important for each to be unique | |
var id = UUID() | |
var name: String | |
} |
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
tell application "System Preferences" | |
set current pane to pane id "com.apple.preference.universalaccess" | |
delay 1 | |
tell application "System Events" to tell process "System Preferences" to tell window "Accessibility" | |
select row 5 of table 1 of scroll area 1 | |
tell tab group 1 of group 1 | |
click radio button "Colour Filters" | |
click pop up button 1 | |
click menu item "Greyscale" of menu 1 of pop up button 1 | |
click checkbox "Enable Colour Filters" |
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
history > history.txt | |
awk '{print $1}' ../history.txt > commands.txt | |
cat commands.txt | sort | uniq -c | sort -r > sorted_commands.txt |
OlderNewer