- Make sure you have Emacs with treesitter support:
M-:(treesit-available-p)RETshould returnt - Make sure you have installed python treesitter grammar
Based on this blogpost.
To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.
Install with Homebrew:
$ brew install gpgI've observed that there is a little bit of a disconnect in understanding what it is that needs to be done to properly implement the lock_pairs function for cs50 Tideman. The goal of this little write-up is simply an attempt at explaining what the problem actually is, and why a cycle imposes a problem.
First:
If you are unfamiliar with the actual problem, or have not read through the entire cs50 Tideman problem description. Then I think you should start there.
cs50 Tideman
Second:
This little write-up is only narrowing in on the idea of cycles, and a way to think about what a cycle is and determine if locking a pair in the pairs array would create that cycle. This does not talk about any other part of the Tideman problem.
| On iTerm2 - Open Preferences > Profiles > Keys > Key Mappings > Presets > Select Natural Text Editing | |
| - You can move a word backwards using Option ⌥ + ← and a word forwards using Option ⌥ + → | |
| - Move to the start of the line using fn + ← and to the end of the line with fn + →. | |
| - Also you can delete a word backwards using Option ⌥ + ⌫, delete the whole line using Command ⌘ + ⌫. | |
| If the preset doesn't appear, reinstall iTerm2. If you installed it using Homebrew + Cask: | |
| brew cask reinstall iterm2 |
!!! For M1/M2 apple silicon see this comment:
For MacOS | Mojave | High Sierra
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright © 2012 Thomas TEMPÉ, <thomas.tempe@alysse.org> | |
| # Copyright © 2014 Alex Griffin, <alex@alexjgriffin.com> | |
| # | |
| # DWTFYW license. | |
| # Do what the fuck you want with this file. | |
| import string |
| ;; Keybonds | |
| (global-set-key [(hyper a)] 'mark-whole-buffer) | |
| (global-set-key [(hyper v)] 'yank) | |
| (global-set-key [(hyper c)] 'kill-ring-save) | |
| (global-set-key [(hyper s)] 'save-buffer) | |
| (global-set-key [(hyper l)] 'goto-line) | |
| (global-set-key [(hyper w)] | |
| (lambda () (interactive) (delete-window))) | |
| (global-set-key [(hyper z)] 'undo) |