Skip to content

Instantly share code, notes, and snippets.

View zgfif's full-sized avatar
🙃

Pasha Bratanov zgfif

🙃
  • Odesa, Ukraine
View GitHub Profile
@zgfif
zgfif / superhero.rb
Last active December 29, 2018 20:57
require 'active_model'
class Superhero
include ActiveModel::Validations
attr_accessor :name, :age
def initialize **args
@name = args[:name]
class Arsenal
def self.hello
'Hello as class method!'
end
def mymy
'Arsen Wenger'
end
require 'active_model'
class Superhero
include ActiveModel::Validations
@@total = []
attr_reader :name, :age
def initialize name, age
@name = name
@zgfif
zgfif / init.vim
Last active November 11, 2024 21:12
neovim configuration for Windows 11
set number
set relativenumber
call plug#begin('~/.vim/plugged')
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
@zgfif
zgfif / Configuration Neovim by using init.lua on Windows 11
Last active November 13, 2024 16:21
How to configure Neovim for Windows 11 by using init.lua
1. Create file init.lua in C:\Users\your_name\AppData\Local\nvim\init.lua
2. Add to file init.lua parameters for tabs (for Python I use 4 spaces for identation):
vim.cmd("set expandtab")
vim.cmd("set tabstop=4")
vim.cmd("set softtabstop=4")
vim.cmd("set shiftwidth=4")
3. Add to init.lua configuration for lazy.nvim package manager
https://lazy.folke.io/installation
@zgfif
zgfif / VirtualBox parameters
Last active July 2, 2025 10:15
Installation guide Arch Linux i3 on VirtualBox Windows 11
Create a new VM with params for Arch Linux:
- 4 Gb RAM
- 20 Gb ROM
Display:
- Video memory: 128 Mb
- Graphic controller: VMSVGA