Skip to content

Instantly share code, notes, and snippets.

@webbower
webbower / vim-cheatsheet.md
Last active July 30, 2024 18:45
Vim Learning

Vim Cheatsheet

Motions

Navigation

  • w: Move [] -> next word
  • W: Move [] -> next WORD
@webbower
webbower / interview-coderpad.js
Last active June 20, 2024 21:28
Interviewing utilities
// START: DENO STD colors
// https://jsr.io/@std/fmt/doc
/**
* Builds color code
* @param open
* @param close
*/
const code = (open, close) => ({
open: `\x1b[${open.join(';')}m`,
close: `\x1b[${close}m`,
@webbower
webbower / asciimoji.txt
Last active December 20, 2024 01:15
ASCII Emoji Reference
Shrug ¯\_(ツ)_/¯
Googley shrug ¯\(º_o)/¯
Flip table (╯°□°)╯︵ ┻━┻
Flip all tables ┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻
Reset table ┬─┬ ノ( ゜-゜ノ)
Cthulhu /|\(;,;)/|\
@webbower
webbower / .gitconfig
Last active February 21, 2025 19:13
Global Git and ZSh config
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
current-branch = rev-parse --abbrev-ref HEAD
cb = rev-parse --abbrev-ref HEAD
@paulirish
paulirish / bling.js
Last active February 18, 2025 14:08
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };