Skip to content

Instantly share code, notes, and snippets.

View joaquimnetocel's full-sized avatar

Joaquim Henriques joaquimnetocel

View GitHub Profile
@joaquimnetocel
joaquimnetocel / sveltekit-.prettierrc
Last active June 23, 2024 03:10
SVELTEKIT PRETTIERRC
{
"tabWidth": 4,
"semi": true,
"useTabs": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
@joaquimnetocel
joaquimnetocel / sveltekit-.vscode-settings.json
Last active July 1, 2024 16:23
VSCODE SETTINGS FOR SVELTEKIT PROJECTS
{
// TAB BEHAVIOR:
"editor.insertSpaces": false, // VSCODE WON'T INSERT SPACES WHEN PRESSING 'TAB'.
"editor.tabSize": 4, // THE NUMBER OF SPACES A TAB IS EQUAL TO.
"editor.detectIndentation": false, // DISABLE 'editor.tabSize' AND 'editor.insertSpaces' AUTOMATIC DETECTION BASED ON THE FILE CONTENTS.
/////
// EXPLORER SIDEBAR:
"explorer.sortOrder": "filesFirst", // FILES AND FOLDERS ARE SORTED BY THEIR NAMES. FILES ARE DISPLAYED BEFORE FOLDERS.
"explorer.confirmDelete": false, // THE EXPLORER WON'T ASK FOR CONFIRMATION WHEN DELETING A FILE VIA THE TRASH.
"workbench.tree.indent": 18, // CONTROLS TREE INDENTATION IN PIXELS.
@joaquimnetocel
joaquimnetocel / reference-value.js
Created March 22, 2024 20:09
PASSANDO POR REFERENCIA OU POR VALOR EM JAVASCRIPT
<script>
// PASSANDO PARA A FUNÇÃO UMA INFORMAÇÃO PRIMITIVA (COMO NÚMERO, STRING OU BOOLEAN), UMA CÓPIA DO VALOR É PASSADA. ASSIM, QUANDO A FUNÇÃO FAZ UMA ALTERAÇÃO, APENAS A CÓPIA É ALTERADA, MANTENDO O VALOR ORIGINAL INTACTO.
let numberAge=1;
function functionBirthday(parAge){
parAge=parAge+1;
}
functionBirthday(numberAge);
@joaquimnetocel
joaquimnetocel / linux-r-installation.md
Created March 16, 2024 02:37
R INSTALLATION ON LINUX
sudo apt install r-base-core
@joaquimnetocel
joaquimnetocel / linux-git-installation.md
Last active June 23, 2024 01:52
GIT INSTALLATION ON LINUX
sudo apt-get install git-all
@joaquimnetocel
joaquimnetocel / linux-snap-update.md
Last active June 23, 2024 01:53
UPDATE SNAP STORE ON LINUX
sudo killall snap-store
sudo snap refresh
@joaquimnetocel
joaquimnetocel / linux-python-installation.md
Created March 16, 2024 02:33
INSTALL PYTHON ON LINUX
sudo apt install python-is-python3
sudo apt install python3-pip
sudo apt install python3.10-venv
@joaquimnetocel
joaquimnetocel / python-remove-all-packages.md
Created March 16, 2024 02:30
REMOVE ALL PYTHON PACKAGES
pip freeze > requirements.txt  
pip uninstall -r requirements.txt -y
@joaquimnetocel
joaquimnetocel / git-config.md
Created March 16, 2024 02:27
GIT ACCOUNT CONFIG
git config --global user.name "TYPE YOUR NAME HERE"
git config --global user.email [email protected]
@joaquimnetocel
joaquimnetocel / node-linux.md
Created March 16, 2024 02:20
INSTALAÇÃO DO NODE NO LINUX
sudo apt update
sudo apt upgrade
sudo apt install -y curl
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install nodejs -y
node --version.

NO CASO DE ERRO, TENTAR: