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
const { UploadId: uploadId } = await s3 | |
.createMultipartUpload({ | |
Bucket: `${process.env.BUCKET_NAME}`, | |
Key: key, | |
}) | |
.promise() | |
async function uploadPart( | |
partNumber: number, | |
uploadId: string, |
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
import java.util.Scanner; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class expressoes_regulares { | |
public static void main(String[] args) { | |
Main main = new Main(); | |
main.run(); | |
} | |
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
public class Bispo extends Peca { | |
public Bispo(Casa casa, char cor) { | |
super(casa, cor); | |
} | |
public boolean haPecas(Tabuleiro tabuleiro, Casa destino) { | |
boolean haPecas = false; | |
if(destino.getX() > casa.getX() && destino.getY() > casa.getY()) { |
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
public class Aluno { | |
Prova p1; | |
Prova p2; | |
double calcularMedia() { | |
double media = (p1.calcularNotaTotal() + p2.calcularNotaTotal())/2; | |
return media; | |
} |
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
public class Aplicacao { | |
public static void main(String[] args) { | |
double area; | |
Triangulo tri = new Triangulo(); | |
tri.b = 5; | |
tri.h = 3; |
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
public class Aplicacao { | |
public static void main(String[] args) { | |
Fracao f1 = new Fracao(); | |
f1.definirValores(7, 3); | |
Fracao f2 = new Fracao(); | |
f2.definirValores(3, 2); |
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
public class Aplicacao { | |
public static void main(String[] args) { | |
Relogio r1 = new Relogio(); | |
r1.acertarRelogio(3, 25, 50); | |
System.out.println("Posicao da hora: " + r1.ponteiroHora.posicao); |