conmute / js-playground

Playing around, nothing to see here…
0 stars 0 forks source link

Evaluate JavaScript skills #1

Open conmute opened 5 months ago

conmute commented 5 months ago
conmute commented 4 months ago

✅ Read 179 questions on https://www.fullstack.cafe/interview-questions/javascript

conmute commented 4 months ago

✅ Read 129 questions on https://www.fullstack.cafe/interview-questions/nodejs

conmute commented 4 months ago

✅ Reinstall jupyter notebook for nodejs as sugested in artcile (but used many others links instead)

The jupyter notebook with nodejs and others, I followed the best rule of thumb and started from instalation:

  1. Picked the miniforge option from https://conda.io/projects/conda/en/latest/user-guide/install/index.html
  2. There is an great article about installing the rest in a right way: https://towardsdatascience.com/how-to-set-up-anaconda-and-jupyter-notebook-the-right-way-de3b7623ea4a
  3. Enabling javascript and typescript can be done with npm packages such as npm install -g ijavascript; ijsinstall; and npm install -g itypescript; its --ts-install=global as explained here: https://gist.github.com/mihai-dinculescu/06120cdd4363f84bc68e79dee8ec27cc.
    • Before this we must install it with conda install nodejs, it will install it into base environment if u wish other, create one
    • Note: nvm that I have will intercept and it might mess up with existing node installation from conda… conda perfectly replaces nvm
    • Also deno supports notebooks as well! https://deno.com/blog/v1.37#jupyter-notebook-integration conda install conda-forge::deno and deno jyputer --unstable --install

Notes:

1) search conda-forge packages here https://conda-forge.org/packages/?

2) specific nbextensions for jupyter notebook: https://towardsdatascience.com/jupyter-notebook-extensions-517fa69d2231

3) To befriend with nvm, we can use such script in ~/.zshrc:

export NVM_DIR="$HOME/.nvm"

# Check if .nvmrc file exists
if [ -f .nvmrc ]; then
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
    nvm use
fi

Now nvm is used only and only when we are opening a new session where .nvmrc is there, and it will overwrite conda node path variable to nvm node path!

Update:

While using condiitonal .nvmrc from above looks good, but there is no need of it :D

Yes, automatically loading of nvm depending on .nvmrc is a good but in general its ok to allow nvm rc be always.

nvm use system will fallback to environment node, which can go to condas nodejs!

conmute commented 4 months ago

✅ In additon 50 question about Network https://www.linkedin.com/pulse/top-50-basic-networking-interview-questions-answers-2023-crawsec/