- Locating our code is easy
- Identify code at a glance
- Flat structure as long as we can
- Try to stay DRY (Don’t Repeat Yourself) or T-DRY
button { | |
background: #ea1d2c; | |
padding: 0.5rem 1.5rem; | |
border: 1px solid black; | |
color: white; | |
font-weight: 700; | |
text-align: center; | |
border-radius: 9999px; | |
$bx-size: 0.2rem; | |
box-shadow: $bx-size $bx-size 0rem 0rem #ffce00, $bx-size $bx-size 0rem 1px #000000; |
module.exports = { | |
//chainWebpack: config => config.optimization.minimize(false) | |
chainWebpack: config => { | |
config.plugin('html').tap(args => { | |
args[0].minify = false | |
args[0].title = "Primeiro Projeto" | |
return args | |
}), | |
config.optimization.minimize(false) | |
} |
# https://www.oracle.com/technical-resources/articles/javase/locale.html#using | |
# https://stackoverflow.com/a/51513723 | |
./mvnw clean spring-boot:run -Dspring-boot.run.jvmArguments="-Duser.language=pt -Duser.country=BR" | |
java -Duser.language=pt -Duser.country=BR -jar app.jar |
Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.
The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.
<script>
// require vue-resource...
new Vue({
Muitas frustrações com o aplicativo oficial SIU Mobile me motivaram a escrever essa documentação. Toda a API foi especificada com o máximo de informações encontradas.
Este documento é totalmente privado e foi disponibilizado em link de Gist secreto para uso interno nas empresas que representam o SIU Mobile BH.
Todo o conteúdo foi observado através da transmissão de dados pela rede. Não foi utilizado nenhum código da aplicação.
openssl req \ | |
-newkey rsa:2048 -nodes -keyout cert.key \ | |
-x509 -days 365 -out cert.crt \ | |
-subj "/C=BR/ST=MG/L=BH/O=Global Security/OU=IT Department/CN=example.com" | |
mkdir -p ~/.config | |
docker run -it \ | |
-p 8080:8080 \ | |
-p 8081:8081 \ |
syntax on | |
set laststatus=2 | |
set visualbell | |
set number | |
set showcmd | |
set ruler | |
" Indentation settings for using 4 spaces instead of tabs. | |
" Do not change 'tabstop' from its default value of 8 with this setup. | |
set shiftwidth=4 |