Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
# File Created: 13.02.2012 10:27:00
mtllib 13450_Bag_of_Gold_v1_L3.mtl
#
# object 13450_Bag_of_Gold
#
v 8.4021 1.5151 8.8908
@ghost355
ghost355 / .idea-lazy.vim
Last active March 3, 2025 19:11 — forked from mikeslattery/.idea-lazy.vim
LazyVim mappings for Jetbrains IDEs
" ~/.idea-lazy.vim
" LazyVim mappings for Jetbrains IDEs
" Required plugins. https://plugins.jetbrains.com/bundles/7-ideavim-bundle
" IDEAVim
" Which-Key
" IdeaVim-Sneak
" To install, add this to the top of your ~/.ideavimrc:
@ghost355
ghost355 / install.sh
Created December 2, 2024 10:46
git install SDL and extensions
git clone https://github.com/libsdl-org/SDL
cd SDL
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
cmake --build . --config Release --parallel
sudo cmake --install . --config Release
@ghost355
ghost355 / bash
Created December 1, 2024 18:58
install SDL3 extensions
cd SDL3
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="x86_64" ..
cmake --build . --config Release --parallel
sudo cmake --install . --config Release
@ghost355
ghost355 / loop_number.c
Last active November 17, 2024 16:02
Loop number цикличный перебор 1..n..1
#include <stdio.h>
#include <stdlib.h>
#define MAX_VALUE 5
//x16 -> 1,2,3,4,5,4,2,1,2,3,4,5,4,3...
int main() {
for (int n = 0; n < 16; ++n) { // измените количество шагов, если нужно
int x = MAX_VALUE - abs(MAX_VALUE - (n % (2 * (MAX_VALUE - 1))));
printf("%d\n", x);
@ghost355
ghost355 / C-Code.md
Created November 16, 2024 08:53 — forked from Acry/C-Code.md
C-Idioms, C-Examples, C-Tutorials, C-Snippets, C-Resources
@ghost355
ghost355 / nod.c
Last active November 9, 2024 05:15
Nod НОД теорема Евклида рекурсия
#include<stdlib.h>
int nod(int x, int y) {
int a = abs(x);
int b = abs(y);
if (b > a) {
int temp = b;
a = b;
b = temp;
}
@ghost355
ghost355 / floatStatus.lua
Created April 2, 2023 18:22
TTS Lua script staus image float
-- Pavel Pavlov @ 2023
-- Project "Floating image as Status with forward/backward loop icon switch"
--=========== UI config ================
-- XML : write ID you want, write name in image from asset as your default image,
-- width and heithg are size of your image
-- offsetXY or position - x,y coordinate where your icon appear after loading
-- [[ in the begining and ]] in the end are muliline Lua syntax
@ghost355
ghost355 / game_status_tile.lua
Last active April 2, 2023 16:33
Статус чего-либо в игре. В виде висящих постоянно кнопок
local iconSet = {}
local index = {}
--=============== Тут нужно поменять значения ===============
-- index["ВАШЕ_НАЗВАНИЕ_ID_В_BUTTON"] - их будет столько сколько у вас кнопок-статусов
-- iconSet["ВАШЕ_НАЗВАНИЕ_ID_В_BUTTON"] = {В кавычках, через запятую имена -
-- нзвания файлов тайлов-иконок, сколько их чередуется в одной кнопке-статусе
-- в меню Modding-Scripting-Закладка Global-Custom UI Assets
-- (Это молоток и гаечный ключ справа вверху панельки)
-- Нажмите красный плюс там чтобы добавить}
-- !!! Важно - в XML файле id в <Button> должны точно свопадать с названиями в index и iconSet
let mapleader = ' '
"======================================================================
" Плагины
"======================================================================
call plug#begin()
Plug 'morhetz/gruvbox'
Plug 'nlknguyen/papercolor-theme'
" Поддержка русского языка при переключении режимов
Plug 'lyokha/vim-xkbswitch'