Skip to content

Instantly share code, notes, and snippets.

@manuwell
manuwell / README.md
Created December 15, 2016 13:05
Pull Request Review Steps

For a good PR review you should consider the following topics

  1. It's proposal should be clear
  2. Code quality
  3. Readability
  4. Unexpected exception
  5. Security Issues
  6. Unexpected recursion
  7. Test readability
  8. Test coverage
@manuwell
manuwell / main.c
Created April 19, 2017 11:05
Anhembi - Construção Algoritmos - Atividade 3
*H**********************************************************************
* FILENAME : main.c
*
* DESCRIPTION :
* Cadastro de pessoas com nome, idade e sexo e imprime as pessoas
* do sexo feminino com idade até 28 anos (inclusive)
*
*
* AUTHOR : Wellington Santos RA : 20993835
*
@manuwell
manuwell / imagick-convert.sh
Last active June 12, 2018 13:34
Imagemagick PDF2TIFF
# convert pdf pages into multiple tiffs
convert unidade_1.pdf pages-%03d.tiff
# convert multiple pdf into tiff grayscaled
convert unidade_1.pdf -gravity center -append -background white -alpha remove -alpha off -set colorspace Gray -separate -average unidade.tiff
# with compress
convert *.pdf -gravity center -append -background white -alpha remove -alpha off -separate -average -strip -quality 90 -depth 16 -compress Zip chargeback-3.tiff ; ls -ltrah *.tiff
# working conversion tiff

Exercício

Ordernar os números do RA 20993835 usando o algoritmo QuickSort

Resposta

Vetor: 20993835

vetor pivot esq dir operação
@manuwell
manuwell / readme.md
Last active November 19, 2018 18:23
Modelo OSI - Camada de Transporte

Aluno: Wellington Santos

RA : 20993835

Questão

Defina A Camada de Transporte e conceitue Controle de sequência e controle de erros dando exemplos.

Resposta

@manuwell
manuwell / readme.md
Last active November 19, 2018 22:30
Adm Banco Dados

Aluno: Wellington Santos RA: 20993835

Questão

Analise atentamente o projeto lógico do banco de dados para um sistema de cadastro de alunos, onde chaves primárias estão grifadas e as chaves estrangeiras em itálico.

Aluno (Codigo_RA, Cod_end, nome,email, RG, CPF)

@manuwell
manuwell / BackofficeApplication.java
Last active September 7, 2020 14:43
medium - springboot de um jeito diferente
@Slf4j
@SpringBootApplication
@EntityScan({ "com.app.domain.models" })
@EnableJpaRepositories({ "com.app.domain.repositories" })
@ComponentScan({ "com.app.config", "com.app.domain", "com.app.backoffice" })
@EnableAutoConfiguration
public class BackofficeApplication {
public static void main(String[] args) throws Exception {
log.info("STARTING BACKOFFICE APPLICATION");
SpringApplication.run(BackofficeApplication.class, args);
@manuwell
manuwell / pre-commit
Last active August 6, 2021 15:08
Rubocop no pre-commit
#!/bin/sh
#
# Check for ruby style errors
# To install follow:
# 1. add this file to your repository .git/hooks/pre-commit
# 2. chmod +x .git/hooks/pre-commit
#
# To skip rubocop checks, before you commit things do:
# SKIP_RC=1 git commit -m 'my skipped commit'

Perhaps talking to them and explain your point of view. Try to present the benefits you think you can get with rails panel. I think all will learn in the discussion.

But if you want to, I tested here and this works:

# in your Gemfile

# double exclamation (!!) point just to ensure to return a bool
gem 'meta_request', require: !!ENV['APP_WITH_RAILS_PANEL']
@manuwell
manuwell / main.js
Created April 15, 2022 17:42
Script AppsScript Sync ONG Adote Um Gatinho (AUG)
// planilhas de teste:
// https://drive.google.com/drive/folders/19bJHxbbAcbky8dO0DB3-T2bmwtJCzc8P
// para que esta função funcione vc. precisa:
// . nomear o intervalo da coluna que guardará o status do sync com o nome "financeiro"
// . criar uma aba chamada config-sync com 2 colunas: Config | Valor
// . configurar as propriedades:
// . URL Planilha Financeiro
// . Aba Planilha Financeiro
// . Cebeçalho (usar formula join para concatenar o cabecalho separado por ';')
function sendToDestino() {