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 <[email protected]> |
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: |
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
! Remap unused special keys on Lenovo E15 to audio control | |
! Fn+F9, message box icon, originally XF86Messenger | |
keycode 224 = XF86AudioPrev NoSymbol XF86AudioPrev | |
! Fn+F10, phone handset upright icon, originally XF86Go | |
keycode 226 = XF86AudioPlay NoSymbol XF86AudioPlay | |
! Fn+F11, phone handset face down icon, originally Cancel | |
keycode 231 = XF86AudioStop NoSymbol XF86AudioStop | |
! Fn+F12, star icon, originally XF86Favorites | |
keycode 164 = XF86AudioNext NoSymbol XF86AudioNext |
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
#!/bin/bash | |
# | |
# This script launches two processes and exits when either of them exits | |
( | |
do_thing_1 | |
kill -s SIGHUP $$ | |
) & | |
( |
NewerOlder