Skip to content

Instantly share code, notes, and snippets.

View Harshmakadia's full-sized avatar
🛰️
Working on a secret mission!

Harsh Makadia Harshmakadia

🛰️
Working on a secret mission!
View GitHub Profile
@jsjoeio
jsjoeio / index.ts
Last active July 12, 2021 14:59
Timezone related functions
import {
fromUnixTime,
format,
} from "date-fns"
/**
* Checks if a timezone string is valid or not
*
* We do this to catch typos.
*
// time and time end
console.time("This");
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
}
console.log("Result", total);
console.timeEnd("This");
// Memory
@mike-casas
mike-casas / install-nvm-zsh.txt
Last active September 23, 2024 01:44
install nvm on mac with zsh shell
After install zsh
- brew update
- brew install nvm
- mkdir ~/.nvm
after in your ~/.zshrc or in .bash_profile if your use bash shell:
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh