This file contains 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
record Point(int x, int y) {} |
This file contains 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://bitabit.dev | |
root = true | |
[*] | |
max_line_length = 80 | |
indent_style = space | |
indent_size = 2 | |
tab_width = 2 | |
end_of_line = lf | |
charset = utf-8 |
This file contains 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
package code; | |
public class SuperDigitJava { | |
//We define super digit of an integer x using the following rules: | |
//If x has only 1 digit, then its super digit is x. | |
//Otherwise, the super digit of x is equal to the super digit of the digit-sum of x. | |
//Here, digit-sum of a number is defined as the sum of its digits. | |
public static void main(String[] args) { |
This file contains 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/sh | |
cd /home/fcoutinho/Downloads/digestaps-master | |
python scripts/ntlmaps & |
This file contains 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
sudo find / -type f -iname "*.png" -print0 | sudo xargs -I {} -0 optipng -o5 -quiet -preserve -log optipng.log "{}" |
This file contains 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
package br.loja.service; | |
import java.math.BigDecimal; | |
import br.loja.dominio.ItemPedido; | |
import br.loja.dominio.Pedido; | |
import br.loja.repositorio.RepositorioPagamentos; | |
import br.loja.service.terceiros.GatewayPagamentoService; | |
public class PagamentoServicePadrao implements PagamentoService { |
This file contains 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
Eu como um Usuário desejo | |
fazer um pedido | |
usando meu carrinho. | |
Eu como um Usuário desejo que | |
meu pedido tenha itens semelhantes | |
aos itens do carrinho. | |
Eu como um Usuário desejo que meu | |
pedido tenha a quantidade de |
This file contains 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
package br.loja.service; | |
import br.loja.dominio.Pagamento; | |
import br.loja.dominio.Pedido; | |
import br.loja.exceptions.PagamentoNaoAutorizadoException; | |
public class PedidoServicePadrao implements PedidoService { | |
private PagamentoService pagamentoService; |
This file contains 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
{ | |
... | |
"directory": "assets/thirdparty" | |
... | |
} |
This file contains 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
package br.loja.utilidades; | |
import java.text.NumberFormat; | |
public class FormatadorDeMoeda { | |
private static NumberFormat formatadorPadrao = NumberFormat.getCurrencyInstance(); | |
public static String formatar(Double valor) { | |
formatadorPadrao.setMinimumFractionDigits(1); |
NewerOlder