Skip to content

Instantly share code, notes, and snippets.

View dimanyc's full-sized avatar

Dimitry Nazarov dimanyc

View GitHub Profile
@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 / doskey.bat
Last active November 21, 2021 18:28 — forked from PierreMage/PowerShell-profile.ps1
Make your Windows command line better with doskey
:: http://technet.microsoft.com/en-us/library/bb490894.aspx
:: F7 = history
:: Alt+F7 = history -c
:: F8 = Ctrl+R
:: Use & to run multiple commands e.g.: command1 & command2
::
:: 1. Go to your Windows folder and find regedit.exe
:: 2. Head over to:
:: HKEY_LOCAL_MACHINE\Software\Microsoft\Command
:: or
@dimanyc
dimanyc / google-analytics-regular-experssion-cheatsheet.md
Last active October 7, 2022 01:41
Google Analytics RegEx cheatsheet

Common Google Analytics RegEx operators

^   beginning of string
$   end of string
.   any character (wildcard)
*   match 0 or more times
+   match 1 or more times 
?   match 0 or 1 time
| alternative
@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