Glossário:
- Git vs GitHub
- Repositório
- Licensa de software (MIT, GNU, etc.)
- Terminologia git:
- Commit
| function sum (a, b) { | |
| return a + b | |
| } | |
| let result = sum(2, 2) | |
| console.log(result) |
| function bubbleSort (items) { | |
| const length = items.length | |
| for (let i = (length - 1); i >= 0; i--) { | |
| for (let j = (length - i); j > 0; j--) { | |
| // Compare the adjacent positions | |
| if (items[j] < items[j - 1]) { | |
| // Swap the numbers | |
| const tmp = items[j] | |
| items[j] = items[j - 1] | |
| items[j - 1] = tmp |
| const class1 = ['yasmin', 'isadora', 'benedita', 'brenda', 'luiza', 'fatima', 'caio', 'teresinha', 'hugo', 'zeca', 'catarina', 'emanuel', 'marcelo', 'claudio', 'marina', 'isabela', 'anthony', 'rebeca', 'filipe', 'laís', 'vinicius', 'helena', 'elisa', 'rodrigo', 'geraldo', 'yuri', 'marcio'] | |
| const class2 = ['benedita', 'elisa', 'emanuel', 'rodrigo', 'filipe', 'marcio', 'teresinha', 'laís', 'vinicius', 'marina', 'catarina', 'luiza', 'marcelo', 'rebeca', 'hugo', 'geraldo', 'zeca', 'caio', 'anthony', 'yasmin', 'claudio'] | |
| const class3 = ['isadora', 'isabela', 'laís', 'claudio', 'catarina', 'zeca', 'teresinha', 'emanuel', 'marcio', 'fatima', 'rodrigo', 'luiza', 'brenda', 'marina', 'marcelo', 'benedita', 'rebeca', 'filipe', 'helena', 'elisa', 'hugo', 'geraldo'] |
| // Entrada do exercício, lista de aulas | |
| let class1 = ['yasmin', 'isadora', 'benedita', 'brenda', 'luiza', 'fatima', 'caio', 'teresinha', 'hugo', 'zeca', 'catarina', 'emanuel', 'marcelo', 'claudio', 'marina', 'isabela', 'anthony', 'rebeca', 'filipe', 'laís', 'vinicius', 'helena', 'elisa', 'rodrigo', 'geraldo', 'yuri', 'marcio'] | |
| let class2 = ['benedita', 'elisa', 'emanuel', 'rodrigo', 'filipe', 'marcio', 'teresinha', 'laís', 'vinicius', 'marina', 'catarina', 'luiza', 'marcelo', 'rebeca', 'hugo', 'geraldo', 'zeca', 'caio', 'anthony', 'yasmin', 'claudio'] | |
| let class3 = ['isadora', 'isabela', 'laís', 'claudio', 'catarina', 'zeca', 'teresinha', 'emanuel', 'marcio', 'fatima', 'rodrigo', 'luiza', 'brenda', 'marina', 'marcelo', 'benedita', 'rebeca', 'filipe', 'helena', 'elisa', 'hugo', 'geraldo'] | |
| // => Parte 1: ordenar os nomes das aulas de forma decrescente (ordem alfabética) | |
| // Quicksort que ordena invertido |
| --DDL - Criando tabelas | |
| CREATE TABLE IF NOT EXISTS cliente ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| nome TEXT NOT NULL, | |
| cpf TEXT NOT NULL UNIQUE, | |
| ativo BOOLEAN DEFAULT TRUE, | |
| data_criacao DATETIME NOT NULL DEFAULT (datetime('now','localtime')) | |
| ); | |
| CREATE TABLE IF NOT EXISTS conta ( |
| { | |
| "contatos": [ | |
| { | |
| "id": 1, | |
| "nome": "John Doe", | |
| "email": "[email protected]", | |
| "telefone": "1111-1111" | |
| }, | |
| { | |
| "id": 2, |
Glossário:
| /* ==UserStyle== | |
| @name 9/30/2022, 3:33:22 PM | |
| @namespace github.com/openstyles/stylus | |
| @version 0.0.1 | |
| @description Margin-top on chess.com board | |
| @author github.com/tiagoamaro | |
| ==/UserStyle== */ | |
| @-moz-document domain("chess.com") { | |
| #board-layout-main { |
This is a quick guide on how to setup dm_crypt under WSL2 for working with encrypted volumes. I use an encrypted volume to store things like password recovery codes and 2nd factor backup codes etc. I recently switched over to using WSL2 and wanted to figure out how to enable this functionality there. This is the distilled howto for getting it to work.
First thing you have to do is create a custom WSL2 kernel. Inside your already installed and running WSL2 (ubuntu) installation:
Filelight - application to visualize the disk usage on your computer (https://apps.kde.org/filelight/)
Flameshot - Powerful yet simple to use screenshot software (https://github.com/flameshot-org/flameshot)
Joplin - open source note-taking app (https://joplinapp.org/)
ShareX - Screen capture, file sharing and productivity tool (https://github.com/ShareX/ShareX)