Skip to content

Instantly share code, notes, and snippets.

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@psaraiva
psaraiva / conda_notas.md
Last active November 6, 2024 18:14
Conda Notas
 _____ _____ _____ ____  _____ 
|     |     |   | |    \|  _  |
|   --|  |  | | | |  |  |     |
|_____|_____|_|___|____/|__|__|

Conda: Comandos para o dia a dia.

Listando todos envs:

@psaraiva
psaraiva / jupyter.md
Created September 18, 2024 22:37
Jupyter
    _                   _            
   (_)                 | |           
    _ _   _ _ __  _   _| |_ ___ _ __ 
   | | | | | '_ \| | | | __/ _ \ '__|
   | | |_| | |_) | |_| | ||  __/ |   
   | |\__,_| .__/ \__, |\__\___|_|   
  _/ |     | |     __/ |             
 |__/      |_|    |___/              
@psaraiva
psaraiva / wsl.md
Last active October 10, 2024 19:40
WSL - Commands
 __      __  ____    __        
/\ \  __/\ \/\  _`\ /\ \       
\ \ \/\ \ \ \ \,\L\_\ \ \      
 \ \ \ \ \ \ \/_\__ \\ \ \  __ 
  \ \ \_/ \_\ \/\ \L\ \ \ \L\ \
   \ `\___x___/\ `\____\ \____/
    '\/__//__/  \/_____/\/___/ 
@psaraiva
psaraiva / sqlite_notes.md
Last active November 25, 2024 13:18
SQLite Notes
.----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| |    _______   | || |    ___       | || |   _____      | || |     _____    | || |  _________   | || |  _________   | |
| |   /  ___  |  | || |  .'   '.     | || |  |_   _|     | || |    |_   _|   | || | |  _   _  |  | || | |_   ___  |  | |
| |  |  (__ \_|  | || | /  .-.  \    | || |    | |       | || |      | |     | || | |_/ | | \_|  | || |   | |_  \_|  | |
| |   '.___`-.   | || | | |   | |    | || |    | |   _   | || |      | |     | || |     | |      | || |   |  _|  _   | |
| |  |`\____) |  | || | \  `-'  \_   | || |   _| |__/ |  | || |     _| |_    | || |    _| |_     | || |  _| |___/ |  | |
| |  |_______.'  | || |  `.___.\__|  | || |  |________|  | || |    |_____|   | || |   |_____|    | || | |_________|  | |
| |              | || |              | || |        
@psaraiva
psaraiva / probability.php
Created October 3, 2023 01:01
php probability
<?php
// run php probability.php
/* Sale Quantity Probability
1 = 75%
2 = 20%
3 = 5%
*/
$probabilities = array_fill(1, 75, 1) + array_fill(76, 20, 2) + array_fill(96, 5, 3);
@psaraiva
psaraiva / warehouse.php
Last active October 3, 2023 01:47
Warehouse - study - fact - dimension
<?php
// Fact: Sales
// Dimenssions: N
//CONFIG
const QTD_SALES = 1000;
// measure
const TOP_SALLERS = 3;
@psaraiva
psaraiva / psql_notas.md
Last active February 23, 2025 13:33
Postgres - Notas
 _______  _______  _______ _________ _______  _______  _______  _______  _______  _       
(  ____ )(  ___  )(  ____ \\__   __/(  ____ \(  ____ )(  ____ \(  ____ \(  ___  )( \      
| (    )|| (   ) || (    \/   ) (   | (    \/| (    )|| (    \/| (    \/| (   ) || (      
| (____)|| |   | || (_____    | |   | |      | (____)|| (__    | (_____ | |   | || |      
|  _____)| |   | |(_____  )   | |   | | ____ |     __)|  __)   (_____  )| |   | || |      
| (      | |   | |      ) |   | |   | | \_  )| (\ (   | (            ) || | /\| || |      
| )      | (___) |/\____) |   | |   | (___) || ) \ \__| (____/\/\____) || (_\ \ || (____/\
|/       (_______)\_______)   )_(   (_______)|/   \__/(_______/\_______)(____\/_)(_______/
@psaraiva
psaraiva / referencias_links.md
Last active September 15, 2022 01:29
Referências: Links.
@psaraiva
psaraiva / cat_notas.md
Last active January 18, 2024 12:02
Cat Notas

Linux cat

 /\_/\
( o.o )
 > ^ <

Lê um arquivo.

cat arquivo.txt