Skip to content

Instantly share code, notes, and snippets.

View IgorZyktin's full-sized avatar

Игорь IgorZyktin

  • Moscow
View GitHub Profile
@IgorZyktin
IgorZyktin / gist:2738520d0f0b767880cc95df732c2b71
Created October 25, 2026 17:23
Revenant - missing dialogues
I2STE11 "Then be gone you unnatural beast."
I2GOW14 "I have nothing more to say to you."
II12GER03 "Locked? Of course, but that lock is not magic, it just needs a special key. "
II15GER07 "Not so far as I know, but I can tell you that the Ogrok hold that amulet in very high regard."
II21VERO6 "Prepare yourself well, the caves are deadly, but few realize that the Ogrok are just as dangerous."
IV1SPIO3 "I will merely light the way for you."
V3RUB11 "Tonight your drinks are on the house."
VII13JHA08 "He who has been chosen to wear the Nahkranoth will be shown the way."
VII15LOC03 "Soon my love, soon we will be together again."
VIII4RUB03 "By all that is holy! Locke, what's happened to you?"
@IgorZyktin
IgorZyktin / gist:803f13104978fef24ad27203c323a39a
Created October 20, 2026 18:57
revenant-windows-fixes.patch
diff --git a/src/display.cpp b/src/display.cpp
index cca9b43a..0e45183d 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -240,20 +240,28 @@ bool TDisplay::FlipPage(bool /*Wait*/)
pa.stencil.action = SG_ACTION_DONTCARE;
sg_begin_default_pass(&pa, sapp_width(), sapp_height());
-
- // Layered composite: Scene3D, then Overlay2D, then DebugUI. The
odd = [
0,
1,
3,
5,
7,
9,
]
even = [
@IgorZyktin
IgorZyktin / menus.py
Created January 15, 2023 20:29
Menus
create table test_menu
(
id serial PRIMARY KEY,
name VARCHAR(50) UNIQUE NOT NULL
);
insert into test_menu (name)
values ('Барское меню'),
('Купеческое меню'),
('Холопское меню');
@IgorZyktin
IgorZyktin / returns.py
Created August 25, 2022 08:51
Type safe returns
import random
from typing import Generic
from typing import TypeVar
from typing_extensions import reveal_type
V = TypeVar('V', covariant=True)
E = TypeVar('E', covariant=True)
"""Поиск оптимальной цепочки городов.
Пример входных данных:
ABCD
Сегменты:
1. AB
2. BC
3. BCD
4. DE
from pprint import pprint
from random import randint
class Room:
def __init__(self, a, b):
self.a = a
self.b = b
def s(self):
from abc import ABC, abstractmethod
class A(ABC):
@property
@abstractmethod
def attr(self) -> str:
...
import random
import statistics
import string
import time
import uuid
VARIANTS = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
ks = []
ds = []
import random
my_set = set(range(100))
my_list = list(range(100))
N = 10
ATTEMPTS = 5
print('\nVariant 1: using generator')
for _ in range(ATTEMPTS):