Signatures of functions, methods and class constructors can be given like they would be written in Python.
This file contains hidden or 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
| #!/usr/bin/swift | |
| import Foundation | |
| let path = NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath | |
| let data = NSKeyedUnarchiver.unarchiveObject(withFile: path) as! NSDictionary | |
| let mutableData = data.mutableCopy() as! NSMutableDictionary | |
| for (key, value) in mutableData { | |
| if value is NSDate { |
Open the iTerm preferences ⌘+, and navigate to the Profiles tab (the Keys tab can be used, but adding keybinding to your profile allows you to save your profile and sync it to multiple computers) and keys sub-tab and enter the following:
⌘+←Delete Send Hex Codes:
0x18 0x7f– Less compatible, doesn't work in node and won't work in zsh by default, see below to fix zsh (bash/irb/pry should be fine), performs desired functionality when it does work.0x15– More compatible, but typical functionality is to delete the entire line rather than just the characters to the left of the cursor.
⌘+fn+←Delete or ⌘+Delete→ Send Hex Codes:
0x0b
This file contains hidden or 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
| Verifying that +arnaus is my openname |