sudo apt-get update
sudo apt-get install git-core
git config --global user.name "David Romero"
git config --global user.email "[email protected]"
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
// The strategy enum pattern | |
enum PayrollDay { | |
MONDAY, | |
TUESDAY, | |
WEDNESDAY, | |
THURSDAY, | |
FRIDAY, | |
SATURDAY(PayType.WEEKEND), | |
SUNDAY(PayType.WEEKEND); | |
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
List<CompletableFuture<Void>> futureList = getAllFuture(); | |
CompletableFuture<Void> allFutureTogether = CompletableFuture.allOf(futureList.toArray()); | |
allFutureTogether.whenComplete( (voidObject, error) -> { | |
if ( error == null ){ | |
// all future ended successfully | |
List<Correo> copyOfCorreos = new ArrayList<>(procesar); | |
Correo lastCorreo = getLastSentCorreo(copyOfCorreos); | |
configuracionCorreoService.save(lastCorreo); |
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
[user] | |
name = David Romero | |
[alias] | |
# one-line log | |
l = log --pretty=format:%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn] --decorate --date=short | |
plog = log --graph --pretty='format:%C(red)%d%C(reset) %C(yellow)%h%C(reset) %ar %C(green)%aN%C(reset) %s' | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
hist = log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red)[%an]%C(reset) %C(white)%d%C(reset)' --graph --date=short | |
a = add |