do # apply diff from other pane
dp # push diff to other pane
]c # jump to next change
[c # jump to previous change
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
| Windows Registry Editor Version 5.00 | |
| ; Open files | |
| [HKEY_CURRENT_USER\Software\Classes\*\shell\Open with Cursor] | |
| @="Edit with Cursor" | |
| "Icon"="C:\\Program Files\\cursor\\cursor.exe,0" | |
| [HKEY_CURRENT_USER\Software\Classes\*\shell\Open with Cursor\command] | |
| @="\"C:\\Program Files\\cursor\\cursor.exe\" \"%1\"" | |
| ; This will make it appear when you right click ON a folder | |
| ; The "Icon" line can be removed if you don't want the icon to appear | |
| [HKEY_CURRENT_USER\Software\Classes\Directory\shell\cursor] |
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
| import unittest | |
| from typing import List, Tuple, Set | |
| class Solution: | |
| def solve(self, puzzle: List[List[int]]) -> List[List[int]]: | |
| self.columns = [set() for _ in range(9)] | |
| self.rows = [set() for _ in range(9)] | |
| self.squares = [[set() for _ in range(3)] for _ in range(3)] | |
| self.res = [row[:] for row in puzzle] |
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
| """Try to make python code py2 py3 compatible. | |
| However, in the near future, python2 support will be ended. | |
| """ | |
| # py2 | |
| print 'Hello World!' | |
| # py3 | |
| print('Hello World!') |
This note illustrates how to adjust resolution using keyboard shorcut using built-in app automator.
After setting up, I can use two actions:
- Switch to Highest resolution
- Switch to Default resolution
I'm new to apple script, so the rule is very simple.