See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
Quando se fala em desenvolvimento de software é comum ouvirmos sobre design patterns, ou padrão de projeto, que nada mais é do que uma solução geral para um problema que ocorre com frequência dentro de um determinado contexto no projeto de software. Assim, um anti-padrão é:
[...] um padrão de projeto de software que pode ser comumente usado, mas é ineficiente e/ou contra-produtivo em prática.
Sometimes, debugging with console.log is not enough to find out what is
happening in the code, as console.log prints only plain objects but neither
functions nor objects with circular references. Besides, it's possible you
may need to know the context and flow of the code.
Read more about debugging with VS Code in VS Code: Debugging.
It will check if current branch is master, then ask a confirmation, in case of master branch
Articles with initial info: https://dev.ghost.org/prevent-master-push/, https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
| @Lock(LockModeType.PESSIMISTIC_WRITE) | |
| @QueryHints({ | |
| @QueryHint(name = "javax.persistence.lock.timeout", value = LockOptions.SKIP_LOCKED + "") // LockOptions.SKIP_LOCKED == -2 | |
| }) | |
| List<SomeEntity> findByStatus(SomeEntityStatus status); |
| @Lock(LockModeType.PESSIMISTIC_WRITE) | |
| @QueryHints({ | |
| @QueryHint(name = "javax.persistence.lock.timeout", value = LockOptions.SKIP_LOCKED + "") // LockOptions.SKIP_LOCKED == -2 | |
| }) | |
| List<SomeEntity> findByStatus(SomeEntityStatus status); |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| LOG_GROUP_NAME="" | |
| LOG_STREAM_NAME="" | |
| REGION="" | |
| OUTPUT_FILE="$(date +"%Y%m%d").log" |
| import com.google.common.base.Stopwatch; | |
| import com.google.common.base.Strings; | |
| import com.google.common.collect.ArrayListMultimap; | |
| import com.google.common.collect.Iterables; | |
| import com.google.common.collect.Multimap; | |
| import com.google.common.io.ByteStreams; | |
| import com.google.common.net.HttpHeaders; | |
| import lombok.extern.log4j.Log4j2; | |
| import org.springframework.stereotype.Component; |
| package br.com.zup.edu.app2.xxx.samples.aws.sqs; | |
| import br.com.zup.edu.app2.xxx.samples.aws.sqs.model.Customer; | |
| import br.com.zup.edu.app2.xxx.samples.aws.sqs.model.CustomerRepository; | |
| import io.awspring.cloud.messaging.listener.SqsMessageDeletionPolicy; | |
| import io.awspring.cloud.messaging.listener.annotation.SqsListener; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | |
| import org.springframework.messaging.handler.annotation.Header; |
| <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><!DOCTYPE html> | |
| <% | |
| '---------- | |
| ' This is an example of an old script I used to use to pull data from an internal web server | |
| ' and render it on a public-facing website. | |
| '---------- | |
| Function getBBstatus() | |
| Dim xmlhttp | |
| Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP") | |
| xmlhttp.setTimeouts 30,500,1000,1000 |