Skip to content

Instantly share code, notes, and snippets.

View JoKenPo's full-sized avatar
👽
sup!

Eduardo Florêncio JoKenPo

👽
sup!
View GitHub Profile
@JoKenPo
JoKenPo / starship.toml
Created August 5, 2023 11:18
Starship
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@JoKenPo
JoKenPo / boas-praticas-review.MD
Created January 12, 2023 14:57
Boas Práticas para Revisão de Código

Guia de boas práticas para revisão de código

Guia de boas práticas para revisão de código. Inspirado, entre outros, no guia da thoughtbot.

Benefícios

  • Antecipação de bugs
  • Maior manutenibilidade do código
  • Legibilidade do código
  • Compartilhamento de conhecimento
@JoKenPo
JoKenPo / .zshrc
Last active June 23, 2022 21:42
ZSH Config
# zmodload zsh/zprof
# skip_global_compinit=1
# Speeds up load time
DISABLE_UPDATE_PROMPT=true
# Perform compinit only once a day.
autoload -Uz compinit

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

@JoKenPo
JoKenPo / .eslintrc.js
Created March 8, 2022 12:59
Eslint config
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: [
'react-app',
'airbnb',
'plugin:@typescript-eslint/recommended',