Skip to content

Instantly share code, notes, and snippets.

@ghost355
ghost355 / gist:95ae31d114368b6c6ccc0fe1c842da4d
Created March 23, 2021 10:19
VIMRC ets-labs / python-vimrc
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
" __ _ _ _ __ ___ _ __ ___ "
" \ \ / / | '_ ` _ \| '__/ __| "
" \ V /| | | | | | | | | (__ "
" \_/ |_|_| |_| |_|_| \___| "
" "
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
let $vimhome=fnamemodify(resolve(expand("~/.vimrc")), ':p:h')
let $vundle=$vimhome."/bundle/Vundle.vim"
@ghost355
ghost355 / gist:de3ec24795cf80fdc8a675e352e0f332
Last active November 8, 2022 15:56
Vim testing .vimrc file
Настройка Vim
1. Базовая настройка
a. Настройка поведения
b. Настройка внешнего вида
c.
2. Настройка клавиш
a. Настройка Lead key
b. Настройка команд
c. Настройки для плагинов
@ghost355
ghost355 / README.md
Created November 8, 2022 20:38 — forked from subfuzion/README.md
vim/neovim configuration

I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.

It's currently synchronized with my .vimrc config except for a block of neovim-specific terminal key mappings.

This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.

These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,

let mapleader = ' '
"======================================================================
" Плагины
"======================================================================
call plug#begin()
Plug 'morhetz/gruvbox'
Plug 'nlknguyen/papercolor-theme'
" Поддержка русского языка при переключении режимов
Plug 'lyokha/vim-xkbswitch'
@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
@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 / 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 / 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 / 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 / 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