Skip to content

Instantly share code, notes, and snippets.

View IlyasYOY's full-sized avatar
👨‍💻
Coding!

Ilya Ilyinykh IlyasYOY

👨‍💻
Coding!
View GitHub Profile
@IlyasYOY
IlyasYOY / settings.json
Created September 27, 2024 21:40
karabiner-home-row-mods
{
"description": "Home row mods - cmd, opt, ctrl, shift",
"manipulators": [
{
"from": {
"simultaneous": [
{
"key_code": "s"
},
{
@IlyasYOY
IlyasYOY / txt
Created December 15, 2023 15:22
Участники конкурса: https://t.me/kydavoiti/329
@darkus13
@mstrpvlv
@ivanpuzako
@nxbeyxnd
@Marandyuk_Anatolii
@IcyKit
@dmitrydorofeev
@iRootPro
@GodlyCoder
https://t.me/kydavoiti/329?comment=5637
@IlyasYOY
IlyasYOY / .obsidian.vimrc
Created September 19, 2023 15:19
my obsidian vimrc.
" Go back and forward with Ctrl+O and Ctrl+I
" (make sure to remove default Obsidian shortcuts for these to work)
exmap back obcommand app:go-back
nmap <C-o> :back
exmap forward obcommand app:go-forward
nmap <C-i> :forward
map й q
map ц w
map у e
@IlyasYOY
IlyasYOY / minimal-config.lua
Last active July 26, 2023 12:39
Simple JDTLS config for NeoVim
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
}
@IlyasYOY
IlyasYOY / setup-lombok-support-for-coc-java.py
Last active November 2, 2023 02:04
Download Lombok and set it up for coc-java 🔥
#!/usr/bin/python3
import json
from pathlib import Path
from urllib import request
coc_java_dir_path = Path.home() / '.config/coc/extensions/coc-java-data'
nvim_config_dir_path = Path.home() / '.config/nvim/'
coc_settings_json_path = nvim_config_dir_path / 'coc-settings.json'
coc_settings_json_bak_path = nvim_config_dir_path / 'coc-settings.json.bak'
@IlyasYOY
IlyasYOY / Dockerfile
Last active February 26, 2020 19:32
Lama compiled in docker.
FROM ocaml/opam2:4.07
RUN sudo apt install m4 gcc-multilib make git -y
RUN opam pin add -n ostap https://github.com/sign5/ostap.git#memoCPS
RUN opam pin add -y lama https://github.com/JetBrains-Research/Lama.git
RUN git clone https://github.com/JetBrains-Research/Lama.git
RUN eval $(opam env) && cd Lama && make
@IlyasYOY
IlyasYOY / homework.py
Last active January 12, 2020 13:21
Experiments homework.
from sympy import *
from sympy.polys import subresultants_qq_zz
x_var = Symbol('x')
p_var = Symbol('p')
q_var = Symbol('q')
f_x = Matrix([
[x_var ** 0, x_var ** 1, x_var ** 2]
])
@IlyasYOY
IlyasYOY / install.py
Created May 17, 2019 21:24
install basic utils....
#!/bin/python3
from subprocess import run
from typing import List
def install_with(*command: List[str]):
print('Running "{}" ========================'.format(' '.join(command)))
result = run(command)
print('Command returned with status: {} ===='.format(result.returncode))
@IlyasYOY
IlyasYOY / iterizer.py
Created October 25, 2018 13:40
Helpful generator to iterable converter.
from typing import Generator
def iterize(generator: Generator):
"""
This function creates an iterable object from the generator you pass here,
it helps when function expects an iterable, but you have a generator.
:param generator: generator that you want to wrap.
:return: an iterable object.
"""
return type('_wrappedGenerator', (), {