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
| # ~/.tmux.conf — konfigurace vyladěná hlavně pro Claude Code | |
| # tmux 3.5a | |
| # --- Klíčové pro Claude Code / TUI aplikace ------------------------------- | |
| # Žádná prodleva po Esc (jinak se Esc v Claude Code i ve vim chová líně) | |
| set -sg escape-time 0 | |
| # True color (24-bit). $TERM uvnitř tmuxu = tmux-256color, navenek RGB. | |
| set -g default-terminal "tmux-256color" |
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 python3 | |
| from argparse import ArgumentParser | |
| from asyncio import run, get_running_loop, sleep, create_task | |
| from logging import getLogger | |
| from pathlib import Path | |
| from dnslib import DNSRecord, DNSHeader, DNSQuestion, RR, A | |
| logger = getLogger(Path(__file__).with_suffix('').name) |
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 python3 | |
| from argparse import ArgumentParser | |
| from pathlib import Path | |
| def replace_line(path, line_number, text): | |
| if isinstance(text, str): | |
| text = text.encode() | |
| assert isinstance(text, bytes) |
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 python3 | |
| import asyncio | |
| import logging | |
| from pprint import pprint | |
| from reprlib import repr as smart_repr | |
| import requests | |
| logger = logging.getLogger(__name__) |
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 python3 | |
| from aiohttp import ClientSession | |
| import asyncio | |
| import logging | |
| from pprint import pprint | |
| from reprlib import repr as smart_repr | |
| logger = logging.getLogger(__name__) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| from datetime import date, datetime, timedelta | |
| def main(): | |
| events = [ | |
| ZakladniInterval(dt('2020-01-01'), dt('2030-01-01')), | |
| Prodlouzeni(id=222, roky=3), | |
| Zruseni(id=333, zrusit_id=222), | |
| Zruseni(id=444, zrusit_id=333), | |
| Zruseni(id=555, zrusit_id=444), |
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 <cstdio> | |
| #include <cstdint> | |
| int main() { | |
| int size = 10; | |
| void *ptr = (void*) 1000; | |
| unsigned *ptr2 = (unsigned*) ptr + size; | |
| printf("ptr: %lu ptr2: %lu \n", (uintptr_t) ptr, (uintptr_t) ptr2); | |
| return 0; | |
| } |
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
| from aiohttp import ClientSession | |
| from asyncio import run, gather, create_task | |
| url_template = 'https://jsonplaceholder.typicode.com/posts/{post_id}' | |
| worker_count = 10 | |
| async def main(): | |
| post_ids = list(range(1, 101)) | |
| titles = {} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder