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
| package main | |
| import syl "../.." | |
| import renderer "../../renderer/raylib" | |
| import rl "vendor:raylib" | |
| import "core:fmt" | |
| // --- Colors (uTorrent Palette) --- | |
| UT_BG :: [4]u8{ 240, 240, 240, 255 } | |
| UT_WHITE :: [4]u8{ 255, 255, 255, 255 } |
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
| package main | |
| import "core:encoding/json" | |
| import "core:fmt" | |
| import "core:math" | |
| import "core:math/rand" | |
| import "core:os" | |
| import "core:slice" | |
| import "core:strings" | |
| import "vendor:raylib" |
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
| odin build . -o:speed |
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
| package wifi_viz | |
| import "core:fmt" | |
| import "core:strings" | |
| import "core:strconv" | |
| import "core:math" | |
| import "core:math/rand" | |
| import "core:c" | |
| import "core:thread" | |
| import "core:sync" |
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
| package game | |
| import "core:fmt" | |
| import "core:math" | |
| import "core:math/rand" | |
| import rl "vendor:raylib" | |
| // --- КОНСТАНТЫ --- | |
| CELL_SIZE :: 30 | |
| COLS :: 10 |
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
| -- =================================================================== | |
| -- LEFT HOT CORNER (Smart Client Menu) | |
| -- =================================================================== | |
| -- 1. Variable to track the menu instance (to check visibility later) | |
| local client_menu_instance = nil | |
| -- 2. Timer to prevent "debouncing" (accidental multiple triggers) | |
| local hot_corner_timer = gears.timer { | |
| timeout = 0.5, |
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 sys | |
| import os | |
| # Добавляем путь к папке с расширениями (если еще нет) | |
| ext_dir = os.path.expanduser('~/.xonsh') | |
| if ext_dir not in sys.path: | |
| sys.path.append(ext_dir) | |
| # Импортируем наш класс | |
| from history_search import SearchEngineHistory |
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
| """ | |
| Esper-Numpy - высокопроизводительная Entity Component System (ECS) для Python на базе NumPy. | |
| ИСПРАВЛЕНА проблема с копированием данных при индексации. | |
| """ | |
| import time as _time | |
| import numpy as np | |
| import inspect as _inspect | |
| from dataclasses import is_dataclass, fields as _dataclass_fields | |
| from types import MethodType as _MethodType |
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
| """Optimized esper - faster Entity System (ECS) for Python | |
| Key optimizations: | |
| 1. Lazy cache invalidation | |
| 2. Faster component lookups with cached min sets | |
| 3. Direct entity component dict access | |
| 4. Optimized dead entity cleanup | |
| 5. Fast processor lookup dict | |
| """ | |
| import time as _time |
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 timeit | |
| from dataclasses import dataclass, replace | |
| # ============================================================ | |
| # Исходные данные | |
| # ============================================================ | |
| color = (0, 121, 241, 255) | |
| new_alpha = 128 | |
| EXPECTED = (0, 121, 241, 128) |
NewerOlder