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
# vim:fileencoding=utf-8:ft=conf | |
# Font family. You can also specify different fonts for the | |
# bold/italic/bold-italic variants. By default they are derived automatically, | |
# by the OSes font system. Setting them manually is useful for font families | |
# that have many weight variants like Book, Medium, Thick, etc. For example: | |
# font_family Operator Mono Book | |
# bold_font Operator Mono Thick | |
# bold_italic_font Operator Mono Medium | |
font_family Hack |
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
$ sudo apt build-dep vim | |
$ git clone https://github.com/vim/vim.git | |
$ cd vim/src | |
$ sudo make distclean | |
$ ./configure --enable-gui=auto --enable-gtk2-check --with-x --enable-python3interp=yes --prefix=/usr |
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
if-shell "test -f ~/.tmux-status.conf" "source ~/.tmux-status.conf" | |
set -g default-terminal "screen-256color" | |
# Enables a true-color support in Tmux | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
# Moving between panes. | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U |
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
function memoized(number) { | |
if (number === memoized.prototype.previousNumber) { | |
return memoized.prototype.previousValue; | |
} | |
memoized.prototype.previousNumber = number; | |
memoized.prototype.previousValue = { value: number }; | |
return memoized.prototype.previousValue; | |
} |
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
function buildQueryString(args){ | |
const argsArray = Object | |
.entries(args) | |
.filter(([key, value]) => value !== undefined); | |
if (!argsArray.length) return ''; | |
return `?${argsArray | |
.map(([key, value]) => `${key}=${value}`) | |
.join('&') | |
}` | |
} |
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
"vimrc file maintained by Damian Michalski for personal use | |
"Based on vimrc from Marek Tkaczyk | |
" NOTE: you need to create 'backup', 'swap', 'undo' and undodir folders inside ~/.vim | |
" NOTE: in order for airline to look good, you need to install and select powerline fonts pack | |
" NOTE: markonm/traces.vim is incompatible with neovim - to make it work, turn off inccommand | |
" NOTE: in order to make language client work, you need to execute: | |
" yarn global add javascript-typescript-langserver | |
" That will install javascript-typescript-stdio |