Skip to content

Instantly share code, notes, and snippets.

View silago's full-sized avatar
💭
satan does you bless

Aleksandr Ovchinnikov silago

💭
satan does you bless
  • Podgorica
View GitHub Profile
@silago
silago / .ideavimrc
Last active February 14, 2023 10:55
Base Ideavim Config
nnoremap <SPACE> <Nop>
let mapleader=" "
nmap <leader>fu :action FindUsages<CR>
nmap <leader>gd :action GotoDeclaration<CR>
nmap <leader>gi :action GotoImplementation<CR>
syntax on
let mapleader=" "
call plug#begin('~/.vim/plugged')
Plug 'sickill/vim-monokai'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree' " file list
Plug 'majutsushi/tagbar' " show tags in a bar (functions etc) for easy browsing
#!/bin/sh
set -x
set -v
projectpath=$1
filename=$2
line=$3
col=$4
export NVIM_LISTEN_ADDRESS="$projectpath/nvimsocket"
echo export NVIM_LISTEN_ADDRESS="$projectpath/nvimsocket" >> /tmp/nvlog.log
@silago
silago / Curved.shader
Created May 5, 2020 09:42 — forked from grimmdev/Curved.shader
Subway Surfer like Curved World Shader for Unity
Shader "Custom/Curved" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_QOffset ("Offset", Vector) = (0,0,0,0)
_Dist ("Distance", Float) = 100.0
}
SubShader {
Tags { "RenderType"="Opaque" }
Pass
{
<?xml version="1.0" encoding="utf-16"?>
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern>
<TypePattern.Match>
<InheritsFromType Name="ZEventMessage"></InheritsFromType>
</TypePattern.Match>
</TypePattern>
<TypePattern RemoveRegions="AllExceptGenerated">
<TypePattern.Match>
<InheritsFromType Name="MonoBehaviour"></InheritsFromType>
#!/usr/bin/env python3
import usb.core
import sys
devs = usb.core.find(find_all=True, idVendor=0x045e, idProduct=0x028e)
dev_num= 0
for dev in devs:
dev.ctrl_transfer(0xc1, 0x01, 0x0100, 0x00, 0x14)
@silago
silago / init.vim
Last active November 15, 2021 13:51
nvim c#
syntax on
call plug#begin('~/.vim/plugged')
"if has('nvim')
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
"else
" Plug 'Shougo/deoplete.nvim'
" Plug 'roxma/nvim-yarp'
" Plug 'roxma/vim-hug-neovim-rpc'
import math
def main():
poly = get_poly()
print("...")
console_draw(poly)
calc_area(poly)
pass