- Garantir a qualidade do software
- Segurança e facilidade na manutenção
- Melhor design de software
- Documentação técnica
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
REST API response format based on some of the best practices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Para desabilitar o teclado interno no Ubuntu, é preciso incluir o parâmetro de Kernel "i8042.nokbd" para que a inicialização não utilize o teclado embutido. | |
| "i8042.nokbd [HW] Não cheque ou crie uma porta de teclado" | |
| 1- Abra um terminal a partir da tela de busca de programas ou com o atalho CONTRL + ALT + T | |
| 2- Digite no terminal o comando abaixo em modo administrador, vai requisitar a sua senha: | |
| sudo gedit /etc/default/grub |
Adding Bootstrap to Rails 7
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/
INSTRUCTIONS
- Add the following to Gemfile: gem "bootstrap" gem "sassc-rails"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vim | |
| vim [opções] [arquivo] | |
| São algumas das opções deste aplicativo | |
| -b : permite editar arquivo binário. | |
| -h : exibe opções do aplicativo. | |
| +n : inicializa o cursor na n-ésima linha. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Cores para saída | |
| VERDE="\e[32m" | |
| VERMELHO="\e[31m" | |
| AMARELO="\e[33m" | |
| RESET="\e[0m" | |
| check_software() { | |
| NOME="$1" |