Skip to content

Instantly share code, notes, and snippets.

View dimanyc's full-sized avatar

Dimitry Nazarov dimanyc

View GitHub Profile
@dimanyc
dimanyc / .vimrc
Created December 28, 2018 15:50
new vimrc
set nocompatible " be iMproved, required
filetype off " required
"--- Vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
map <Leader>t :call RunCurrentSpecFile()<CR>
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git\|tmp\|coverage'
@dimanyc
dimanyc / .vimrc
Last active June 19, 2020 13:36
.vimrc as of 5/17/20
set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'MaxMEllon/vim-jsx-pretty'
Plug 'danilo-augusto/vim-afterglow'
Plug 'dense-analysis/ale'
Plug 'jparise/vim-graphql'
Plug 'junegunn/fzf', { 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
@dimanyc
dimanyc / .vimrc
Created September 8, 2021 14:20
.vimrc 09/08/21
set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'danilo-augusto/vim-afterglow'
Plug 'thoughtbot/vim-rspec'
Plug 'tomasr/molokai'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-dispatch'
@dimanyc
dimanyc / gist:22924e3e08829ebcfb63c9997b487832
Created May 24, 2023 23:24
rucksack problem for materials
class Item:
def __init__(self, width, height, quantity):
self.width = width
self.height = height
self.quantity = quantity
class MaterialSheet:
def __init__(self, width, height):
self.width = width
self.height = height