Skip to content

Instantly share code, notes, and snippets.

View just-paja's full-sized avatar

Pavel Žák just-paja

View GitHub Profile
@just-paja
just-paja / git-contrib
Last active December 4, 2023 18:49
Calculate production code contributions from git
#!/usr/bin/env bash
# This script calculates author contributions. It counts all git indexed lines
# that somehow contribute to the production value. All test files, lock files
# and binary files are excluded. Also it prints file names as progress
# indicator.
#
# * Counts only living contributions
# * Lines of code that have been changed are attributed to the last author
# * Misconfigured git names will lead to scrambled contributions
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
let g:ctrlp_map = '<C-t>'
let g:prettier#autoformat = 1
let g:prettier#autoformat_require_pragma = 0
let g:completor_node_binary = '/usr/bin/node'
let g:tern_show_argument_hints='on_hold'
let mapleader = ','
augroup FiletypeGroup
# initialization file (not found)