This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_model' | |
class Superhero | |
include ActiveModel::Validations | |
attr_accessor :name, :age | |
def initialize **args | |
@name = args[:name] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Arsenal | |
def self.hello | |
'Hello as class method!' | |
end | |
def mymy | |
'Arsen Wenger' | |
end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_model' | |
class Superhero | |
include ActiveModel::Validations | |
@@total = [] | |
attr_reader :name, :age | |
def initialize name, age | |
@name = name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set number | |
set relativenumber | |
call plug#begin('~/.vim/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'vim-airline/vim-airline' | |
Plug 'preservim/nerdtree' | |
Plug 'ryanoasis/vim-devicons' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a new VM with params for Arch Linux: | |
- 4 Gb RAM | |
- 20 Gb ROM | |
Display: | |
- Video memory: 128 Mb | |
- Graphic controller: VMSVGA |
OlderNewer