Skip to content

Instantly share code, notes, and snippets.

View colantuomo's full-sized avatar
👨‍💻
Coding

Paulo Martins colantuomo

👨‍💻
Coding
View GitHub Profile
@colantuomo
colantuomo / useful-js-ts-codes.md
Created February 14, 2023 20:56
Useful JS/TS Codes

Remove accents and normalize words

export const removeAccents = (word: string) =>
  word
    .toLowerCase()
    .normalize('NFD')
    .replace(/[\u0300-\u036f]/g, '');
@colantuomo
colantuomo / useful-scripts.md
Last active June 2, 2021 13:45
bash useful scripts

A List of useful bash scripts for MacOS and Linux

A smart way to checkout from branches:

function smart_checkout() {
    git branch
    echo "Type part of the branch you want to move?"
    read word
    for branch in $(git branch);