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
| services: | |
| vintagestory: | |
| container_name: vintagestory | |
| image: mcr.microsoft.com/dotnet/runtime:8.0 | |
| ports: | |
| - "42420:42420" | |
| volumes: | |
| - ./server:/var/vintagestory/server:ro |
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
| # GENERAL OPTIONS | |
| --abort-on-error | |
| # NETWORK OPTIONS | |
| #--proxy URL | |
| # GEO-RESTRICTION | |
| # VIDEO SELECTION | |
| --download-archive videos.log |
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 keyboard | |
| hold = False | |
| while True: | |
| keyboard.wait('x', suppress=True) | |
| if hold: | |
| keyboard.release('x') | |
| else: | |
| keyboard.press('x') | |
| hold = not hold |
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
| names = {} # from https://github.com/Raven-SL/ru-pnames-list | |
| for name in open('names').read().lower().split(): | |
| ch = name[0] | |
| if ch in names: | |
| names[ch].add(name) | |
| else: | |
| names[ch] = set((name,)) | |
| out, err = [], [] | |
| text = input() |
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
| sed -i 's/orig_quote == \'"\'/orig_quote != \'"\'/' ./src/black/strings.py |
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
| # not A = A | A | |
| # A and B = (A|B) | (A|B) | |
| # A or B = (A|A) | (B|B) | |
| # A -> B = A | (A|B) | |
| # A xor B = (A|(A|B)) | (B|(A|B)) | |
| class L: | |
| def __init__(self, val): | |
| self.val = bool(val) |
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
| def repeat(count): | |
| def dec(fun): | |
| def res(*args, **kwargs): | |
| for _ in range(count): | |
| fun(*args, **kwargs) | |
| return res | |
| return dec | |
| @repeat(10) |