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 pygame | |
| import sys | |
| import math | |
| import random | |
| import time | |
| from collections import deque | |
| pygame.init() | |
| W, H = 1200, 780 |
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 | |
| # Цвета для красоты | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| RED='\033[0;31m' | |
| CYAN='\033[0;36m' | |
| NC='\033[0m' # No Color | |
| clear |
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:fmt" | |
| import "core:math" | |
| import "core:time" | |
| // ======================================================= | |
| // StableVector (Slot Map implementation) | |
| // ======================================================= |
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 |
NewerOlder