sed -i 's/[ \t]*$//' folder/*/*.py
# General use-case
jupyter nbconvert --to slides filename.ipynb
# Code-free conversion
""" | |
Module containing utility functions to time code snippets. | |
""" | |
import contextlib | |
import time | |
@contextlib.contextmanager | |
def timelogger(msg_prefix:str='Executed in : ', msg_suffix:str='s', logger=print): |
from crontab import CronTab | |
from datetime import datetime | |
cron = CronTab() | |
cmds = { | |
'python ~/code/reminder.py': '0/30 9-18 * * *', | |
'~/code/backup.sh': '0/30 9-18 * * *', | |
} | |
for cmd, cron_str in cmds.items(): |
" Steps | |
" ===== | |
" 1. Add below content to your .vimrc | |
" 2. Clone vundle : `git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim` | |
" 3. Run :PluginInstall in vim | |
" -------------------------------------------------- | |
" Vundle package manager settings | |
" -------------------------------------------------- |
[alias] | |
s = status | |
a = add | |
d = diff | |
dc = diff --cached | |
dd = difftool --tool=vimdiff -y | |
c = commit | |
ps = push | |
pl = pull | |
co = checkout |
sudo apt-get install xkbset
xkbset ma 60 10 10 5 2