Skip to content

Instantly share code, notes, and snippets.

View Dammic's full-sized avatar
🦊
*

Damian Michalski Dammic

🦊
*
  • VirtusLab
  • Kraków
View GitHub Profile
@Dammic
Dammic / kitty.conf
Last active September 7, 2018 13:31
# 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
$ 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
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
@Dammic
Dammic / memoize.js
Created November 7, 2017 18:21
memoize
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;
}
@Dammic
Dammic / query1.js
Created November 7, 2017 18:01
Query
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('&')
}`
}
@Dammic
Dammic / vimrc
Last active December 19, 2019 02:38
"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
@Dammic
Dammic / bind-in-constructor-vs-bind-in-render.markdown
Created March 30, 2017 09:55
Bind in constructor vs bind in render
@Dammic
Dammic / dvbxlp.markdown
Last active February 24, 2017 20:11
dvbXLP