FOFuad Olatunjiinblog.fuadolatunji.me·Dec 13, 2024 · 1 min readHow Node.js Buffer.from(str, 'hex') might be implemented?https://gist.github.com/fuadop/88aaf88f07771c88de10a3eeb70edff100
FOFuad Olatunjiinblog.fuadolatunji.me·Dec 13, 2024 · 1 min readHow might atob() be implemented in JS?https://gist.github.com/fuadop/90f67285e6f250c76aafd698ba76433100
FOFuad Olatunjiinblog.fuadolatunji.me·Dec 13, 2024 · 1 min readHow might window.btoa() be implemented in JS?/** * @param {string} b * @returns {string} */ const btoa = (b) => { let s = ''; const bytes = new Uint8Array(b.split('').map(x => x.charCodeAt(0))); const ALPHABET_TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567...00
FOFuad Olatunjiinblog.fuadolatunji.me·Dec 13, 2024 · 1 min readHow to clear TMUX scrollback buffer with zsh keybindingstmux -V &> /dev/null if [[ $? -eq 0 ]]; then function clear_tmux_scrollback_buffer() { tmux clear-history } zle -N clear_tmux_scrollback_buffer bindkey "^[^L" clear_tmux_scrollback_buffer fi https://github.com/fuadop/zsh-conf...00
FOFuad Olatunjiinblog.fuadolatunji.me·Jan 1, 2023 · 5 min readImplementing OOP Concepts in GolangGolang is not purely an object-oriented programming language, but it has features that make OOP possible.In this article, we will look at OOP in Golang by building an auto-shop project. The project is described in this document: https://docs.google.c...00