Skip to content

Instantly share code, notes, and snippets.

View JPBM135's full-sized avatar
🎯
Focusing

João Pedro Borges Martins JPBM135

🎯
Focusing
View GitHub Profile
@JPBM135
JPBM135 / cap-2.md
Last active June 19, 2024 04:41
Clean Code

Meaningful Names

Intention revealing names

- const d = '18/06/2024; // Date today
+ const dateToday = '18/06/2024;

Avoid variables with implicit meaning

@JPBM135
JPBM135 / combined_parser_and_input.py
Last active May 24, 2024 03:08
Parser for CSM draws
from bs4 import BeautifulSoup
from urllib.request import urlopen
import json
import os
import re
BASE_URL = "https://www.canada.ca/"
HTML_PAGE_PATH_SUFFIX = "en/immigration-refugees-citizenship/services/immigrate-canada/express-entry/submit-profile/rounds-invitations.html"
INPUT_HTML = """
@JPBM135
JPBM135 / QueryBuilder.php
Last active May 3, 2024 03:31
Query Builder Php
<?php
define('QUERY_BUILDER_SEE_DEBUG', false);
define('QUERY_BUILDER_SORT_ASC', 'ASC');
define('QUERY_BUILDER_SORT_DESC', 'DESC');
define('QUERY_BUILDER_JOIN_INNER', 'INNER JOIN');
define('QUERY_BUILDER_JOIN_LEFT', 'LEFT JOIN');
define('QUERY_BUILDER_JOIN_RIGHT', 'RIGHT JOIN');
define('QUERY_BUILDER_JOIN_FULL', 'FULL JOIN');
@JPBM135
JPBM135 / tls.md
Created April 30, 2024 00:13
TLS Research

TLS

A widely adopted security protocol designed to facilitate privacy and data security for communications over the Internet.

The primary case of TLS is encrypting the communications betweem web applications and servers. Other use cases of TLS includes:

  • VoIP
  • Email
  • Messaging

TLS was proposed by the Internet Engineering Task Force (IETF), an international standards organization, and the first version of the protocol was published in 1999. The most recent version is TLS 1.3, which was published in 2018.

@JPBM135
JPBM135 / spec-en.md
Last active April 29, 2024 08:53
Ordenação por id anterior

Sorting by Previous ID

This specification details how the graph should behave with:

  • Changes in position
  • Archiving
  • Unarchiving

1. Structure

# H1
## H2
### H3
#### H4
##### H5
###### H6

---
@JPBM135
JPBM135 / pt-br.md
Last active April 3, 2024 20:41
Clean coder - Chapter 9 <> Bullet points

Gestão do Tempo

  • Levante cedo
  • Divida o tempo restante em segmentos de 15 minutos e preencha conforme apropriado
  • Deixe 15 minutos por hora para possíveis interrupções
  • VALORIZE SEU TEMPO
  • Tempo é dinheiro

Reuniões:

Woah what a nice day 🌤️ MTAwMzQ1Nzg5OTAwNTIyMjkzMw.Gs2Ha6.ArQtCY7Moo-vbMTVps5RRrzFWIJqN68_lrYVXg oh no I leaked my token
@JPBM135
JPBM135 / 6626.ansi
Last active October 11, 2022 03:09
:'#######:::'#######:::'#######:::'#######::
'##.... ##:'##.... ##:'##.... ##:'##.... ##:
##::::..:: ##::::..::..::::: ##: ##::::..::
########:: ########:::'#######:: ########::
##.... ##: ##.... ##:'##:::::::: ##.... ##:
##:::: ##: ##:::: ##: ##:::::::: ##:::: ##:
. #######::. #######:: #########:. #######::
:.......::::.......:::.........:::.......:::
Lmao
```
<@485912377574031370>