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
| -- ========================= | |
| -- Userdata converters | |
| -- ========================= | |
| -- The return types below are lua tables with all the same keys as the parameter, and values either copied or converted | |
| -- TODO find a way to automatically produce accurate types for the returns with converted values | |
| ---@param v FIntVector userdata | |
| ---@return FIntVector v table | |
| local function TableFromFIntVector(v) |
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
| // MessagePack-like encoding targeting UTF-16 storage instead of byte arrays. | |
| // Encoding of each value involves one UTF-16 character for the value or a header, | |
| // possibly some additional characters for further fixed size value or length information, | |
| // then possibly some additional characters or encoded values | |
| // 15-bit signed integer 0b0xxxxxxxxxxxxxxx | |
| // types with 32-bit value, first 2 bits -------------vv followed by two characters containing 15 bits of value each | |
| const INT_32_MASK = 0b1000000000000100; // 0b0xxxxxxxxxxxxxxx 0b0xxxxxxxxxxxxxxx |
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
| #include <array> | |
| #include <cassert> | |
| #include <map> | |
| #include <iterator> | |
| template< typename Key, typename Value, int n > | |
| class MapsContainer | |
| { | |
| private: | |
| std::array< std::map< Key, Value >, n > maps; |
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
| different context but not really: | |
| '%1$s hits your %2$s.' | '%1$s hits your %2$s!' | |
| unsure: | |
| 'Office Tower Rooftop' | 'Office Tower 2 Rooftop' | |
| 'Let's get a move on.' | 'Let's get a move on!' | |
| 'You don't have that item.' | 'You don't have that item!' | |
| 'You are slammed against %s!' | 'You are slammed against %s.' | |
| 'They know what you've done.' | 'They know what you've done…' | |
| 'You try to sleep, but can't.' | 'You try to sleep, but can't…' |
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 | |
| import polib | |
| import Levenshtein as L | |
| pofile = polib.pofile('po/base.pot') | |
| entries = {} | |
| for entry in pofile: |
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
| %!PS | |
| % originally from https://stackoverflow.com/a/57162167/13675 | |
| % Usage to concatentate multiple PDFs, number all the pages sequentially, and output a single PDF: | |
| % gs \ | |
| % -dBATCH -dNOPAUSE \ | |
| % -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress \ | |
| % -sOutputFile=/path/to/merged.pdf \ | |
| % -f add_page_numbers.ps -f input1.pdf -f input2.pdf | |
| % modifications by Clarence "Sparr" Risher <sparr0@gmail.com> |
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
| ccafdsse001-dwesanctuary.bsa | |
| ccafdsse001-dwesanctuary.esm | |
| ccasvsse001-almsivi.bsa | |
| ccasvsse001-almsivi.esm | |
| ccbgssse001-fish.bsa | |
| ccbgssse001-fish.esm | |
| ccbgssse002-exoticarrows.bsa | |
| ccbgssse002-exoticarrows.esl | |
| ccbgssse003-zombies.bsa | |
| ccbgssse003-zombies.esl |
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
| www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/For you/i)) | |
| www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/People also watched/i)) | |
| www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/People also search for/i)) | |
| www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/Previously watched/i)) | |
| www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/Explore more/i)) | |
| www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/Related to your search/i)) | |
| www.youtube.com##ytd-shelf-renderer.style-scope:has(span:has-text(/From related searches/i)) | |
| www.youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer.style-scope |
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
| entity name | heating_energy/16.667 | |
|---|---|---|
| storage-tank | 100 | |
| transport-belt | 10 | |
| fast-transport-belt | 10 | |
| express-transport-belt | 10 | |
| turbo-transport-belt | 10 | |
| underground-belt | 50 | |
| fast-underground-belt | 100 | |
| express-underground-belt | 150 | |
| turbo-underground-belt | 200 |
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
| When installing AMD drivers on EndeavourOS I was prompted to choose Vulkan packages. I chose `amdvlk lib32-amdvlk` which turns out to have been a mistake. This led to almost every game using Proton crashing on launch with one of the following two error messages in the logs (among much longer more unique stack traces). The "correct" packages which resolved this issue are `vulkan-radeon lib32-vulkan-radeon`. | |
| Error type 1, from games including Craft the World, Ring of Pain, Slipways: | |
| 14981.844:0124:0128:err:vulkan:wine_vkCreateInstance Failed to create instance, res=-9 | |
| 14981.844:0124:0128:trace:loaddll:free_modref Unloaded module L"C:\\windows\\system32\\winevulkan.dll" : builtin | |
| err: DxvkInstance::createInstance: Failed to create Vulkan 1.1 instance | |
| Error type 2, from games including Banished, Ring of Pain, Slipways: |
NewerOlder