Skip to content

Instantly share code, notes, and snippets.

View wlsf82's full-sized avatar
👨‍💻

Walmyr wlsf82

👨‍💻
View GitHub Profile
@samlucax
samlucax / utils.js
Created March 17, 2021 05:45
Semana Agilizei 3.0 - Arquivo de funções úteis
export const format = (value) => {
let formattedValue
formattedValue = value.replace(',', '.')
formattedValue = Number(formattedValue.split('$')[1].trim())
formattedValue = String(value).includes('-') ? -formattedValue : formattedValue
return formattedValue
}
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh