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
| 16:9 | |
| vs Dell P2715Q (Egmont) 27" 100% 16:9 (100:100) | 59x33cm 100x 100% | 2009cm2 100% | 3840x2160px 100x100% | 3600kr (100%) :: Display port | 100% | |
| vs Macbook Dashou 13" 48% 16:9 (100:100) | 28x16cm 48x 48% | 465cm2 23% | 2560x1600px 66x 74% | 12000kr (333%) :: | 48% | |
| vs Dell P2721Q (Mauro) 27" 100% 16:9 (100:100) | 59x33cm 100x 100% | 2009cm2 100% | 3840x2160px 100x100% | 3699kr (102%) :: usb-c | 100% | |
| 21:9 | |
| vs Samsung C34H890WG 34" 125% 21:9 (131:100) | 79x34cm 132x 101% | 2700cm2 134% | 3440x1440px 89x 66% | 4190kr (116%) :: usb-c | 132% | |
| vs Samsung C34J791 34" 125% 21:9 (131:100) | 79x34cm 132x 101% | 2700cm2 134% | 3440x1440px 89x 66% | 5799kr (161%) :: DP/HDMI/USB-C | 132% | |
| vs Samsung C34G55T 34" 125% 21:9 (131:100) | 79x34cm 132x 101% | 2700cm2 134% | 3440x1440px 89x 66% | 3999kr (111%) :: HDMI/DP | 132% | |
| vs Samsung C34J791WTU 34" 125% 21:9 (131:1 |
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
| -- Prompt for directory creation when attempting to save to non-existing location | |
| -- Create an autocommand group, clearing it of any existing commands | |
| vim.api.nvim_create_augroup('CreateMissingDir', { clear = true }) | |
| -- Setup an auto command that triggers prior to vim writing a buffer | |
| vim.api.nvim_create_autocmd('BufWritePre', { | |
| -- Specifies that the auto command belongs to the augroup we just created | |
| -- and that it applies to all file types (*) | |
| group = 'CreateMissingDir', | |
| pattern = '*', |
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/env python | |
| # Playing with word filters | |
| # pip install english-words | |
| from english_words import get_english_words_set | |
| web2 = get_english_words_set(['web2'], lower=True) | |
| gcide = get_english_words_set(['gcide'], lower=True) |
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/env ruby | |
| def mutate_hash_key_and_return_cache | |
| key1 = { k: 1 } | |
| key2 = { k: 2 } | |
| puts "key hash: #{key1.hash} obj_id: #{key1.object_id}" # key hash: 2866644869520814412 obj_id: 60 | |
| puts "val hash: #{key2.hash} obj_id: #{key2.object_id}" # val hash: -3505864355511529673 obj_id: 80 | |
| cache = { key1 => "x", key2 => "y" } | |
| key2[:k] = 1 # The two keys in the cache now have the same value. |
OlderNewer