Skip to content

Instantly share code, notes, and snippets.

View Hammer2900's full-sized avatar
🌲
___

Yevhen Ts. Hammer2900

🌲
___
View GitHub Profile
@Hammer2900
Hammer2900 / main.py
Created May 7, 2026 13:01
интерполяция рендера
import pygame
import sys
import math
import random
import time
from collections import deque
pygame.init()
W, H = 1200, 780
@Hammer2900
Hammer2900 / galaxy_genesis.sh
Last active April 24, 2026 10:16
auto installer stellaris old version include
#!/bin/bash
# Цвета для красоты
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color
clear
@Hammer2900
Hammer2900 / main.odin
Created February 4, 2026 17:23
slot map in odin
package main
import "core:fmt"
import "core:math"
import "core:time"
// =======================================================
// StableVector (Slot Map implementation)
// =======================================================
@Hammer2900
Hammer2900 / main.odin
Last active January 18, 2026 10:11
torent client gui on odin, place to example folder
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 }
@Hammer2900
Hammer2900 / snake_neat.odin
Created January 4, 2026 18:38
neat snake test map
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"
@Hammer2900
Hammer2900 / 1.sh
Created December 31, 2025 22:53
Odin ECS Particle Life Evolution
odin build . -o:speed
@Hammer2900
Hammer2900 / wifi.odin
Created December 31, 2025 22:18
wifi linux scaner
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"
@Hammer2900
Hammer2900 / tetris_ecs.odin
Created December 31, 2025 21:17
tetris ecs odin
package game
import "core:fmt"
import "core:math"
import "core:math/rand"
import rl "vendor:raylib"
// --- КОНСТАНТЫ ---
CELL_SIZE :: 30
COLS :: 10
@Hammer2900
Hammer2900 / rc.lua
Created December 26, 2025 14:53
Smart Hot Corners (Global Back / Alt-Tab Teleport)
-- ===================================================================
-- 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,
@Hammer2900
Hammer2900 / .xonshrc
Created December 13, 2025 12:00
save xonsh history to index
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