Skip to content

Instantly share code, notes, and snippets.

View arafatamim's full-sized avatar

Tamim Arafat arafatamim

View GitHub Profile
set tabstop=2
set shiftwidth=2
set expandtab
"compiler fish
setlocal textwidth=79
"setlocal foldmethod=expr
call plug#begin('~/.nvim/plugins')
Plug 'tpope/vim-sensible'
#!/usr/bin/env python3
import json
import subprocess
from pathlib import Path
venv_path = subprocess.check_output("poetry env info --path".split())
venv_path = venv_path.decode("UTF-8")
settings = dict()
@arafatamim
arafatamim / boxit.py
Created June 30, 2019 08:53
Python method to wrap text in box
def boxit(input, borderStyle="-", tl="+", tr="+", bl="+", br="+"):
line1 = tl + borderStyle * (len(input)+2) + tr
line2 = "| " + input + " |"
line3 = bl + borderStyle * (len(input)+2) + br
result = '''{0}
{1}
{2}'''.format(line1, line2, line3)
return result