Skip to content

Instantly share code, notes, and snippets.

View parthokr's full-sized avatar
🎯
Focusing

Partho Kumar Rajvor parthokr

🎯
Focusing
View GitHub Profile
@parthokr
parthokr / init.vim
Created March 24, 2024 14:57
Neovim configuration
autocmd filetype cpp nnoremap <F5> :w <bar> !g++ -Wall -Wno-unused-result -std=c++17 -O2 % -o %:r.out && ./%:r.out <CR>
let mapleader = "\<Space>"
:set number
:set relativenumber
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set smarttab
:set softtabstop=4
:set mouse=a
@parthokr
parthokr / parseml.py
Created November 18, 2022 17:02 — forked from urschrei/parseml.py
Extract attachments from EML files in the current dir, and write them to the output subdir
#!/usr/bin/env python
"""
2020 update:
- More iterators, fewer lists
- Python 3 compatible
- Processes files in parallel
(one thread per CPU, but that's not really how it works)
"""
@parthokr
parthokr / vscode_shortcuts.md
Last active January 25, 2021 10:06 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

{
"cmd": ["start", "cmd", "/c", "echo Compiling... && g++ '${file}' -o ${file_base_name} && cls && ${file_base_name} && echo. && pause"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp",
"shell": true,
"variants":
[
{