Skip to content

Instantly share code, notes, and snippets.

@mikowl
mikowl / oneliners.js
Last active February 19, 2025 05:20
👑 Awesome one-liners you might find useful while coding.
// Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// or
const sleep = util.promisify(setTimeout);
@mikowl
mikowl / settings.json
Created April 23, 2019 02:15
My VSCode settings.json
{
"breadcrumbs.enabled": false,
// Editor font
"editor.fontFamily": "'Operator Mono Lig', 'Dank Mono', Monaco, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.renderWhitespace": "boundary",
"editor.fontLigatures": true,
"editor.cursorBlinking": "solid",
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
@mikowl
mikowl / .vimrc
Last active June 10, 2019 20:54
.vimrc (NerdTree version)
set encoding=utf8
set nocompatible
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-markdown'
Plug 'masukomi/vim-markdown-folding'
@mikowl
mikowl / settings.json
Last active September 5, 2022 20:16
vscode config
{
"workbench.colorCustomizations": {
// "editorGroupHeader.tabsBorder": "#303340",
"tab.activeBorder": "#c692ea",
// "editorLineNumber.foreground": "#525a86",
// "statusBar.background": "#011627",
// "statusBar.noFolderBackground": "#011627",
// "statusBar.debuggingBackground": "#011627",
// "statusBar.foreground": "#d6deeb",
// "statusBar.debuggingForeground": "#d6deeb"
@mikowl
mikowl / my-vscode-plugins.md
Last active June 21, 2022 16:52
vscode plug-in list

vs code extensions

code --install-extension aaron-bond.better-comments code --install-extension akamud.vscode-javascript-snippet-pack code --install-extension alefragnani.Bookmarks code --install-extension alefragnani.rtf code --install-extension alexanderte.dainty-nord-vscode code --install-extension angelo-breuer.clock code --install-extension atlassian.atlascode code --install-extension BeardedBear.beardedtheme code --install-extension buenon.scratchpads

@mikowl
mikowl / .vimrc
Created June 3, 2019 16:45
.vimrc (no NerdTree)
set encoding=utf8
set nocompatible
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-markdown'
Plug 'masukomi/vim-markdown-folding'
@mikowl
mikowl / .vimrc
Last active June 21, 2022 16:49
work vimrc 06/23/19
set encoding=utf8
set nocompatible
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-markdown'
Plug 'tpope/vim-speeddating'
@mikowl
mikowl / keybindings.json
Last active December 13, 2022 19:05
vscode keybindings
// mikowls mostly vimish vscode keybindings
[
{
"key": "cmd+n",
"command": "workbench.action.files.newUntitledFile"
},
{
"key": "cmd+k cmd+t",
"command": "workbench.action.selectTheme"
},
@mikowl
mikowl / nord-vimium.css
Created July 5, 2019 19:07
Nord Vimium Theme
/* Nord Vomnibar CSS */
/* Installation: Open Vimium Options -> Click "Show Advanced Options" and paste this into the CSS for Vimium UI text area. */
#vomnibar ol, #vomnibar ul {
list-style: none;
display: none;
}
#vomnibar {
background: rgba(46, 52, 68, 0.9);
@mikowl
mikowl / emacs-config.org
Last active December 27, 2021 17:42
emacs config as of 12/08/20

Emacs configuration

Improve startup time