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
My Typescript solution |
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 Counter = { | |
handler: null, | |
end: 5, | |
seconds: 0, | |
start: () => { | |
if (Counter.handler) { | |
clearInterval(Counter.handler); | |
Counter.seconds = 0; | |
} |
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
CREATE DATABASE IF NOT EXISTS `aula-php` /*!40100 DEFAULT CHARACTER SET latin1 */; | |
USE `aula-php`; | |
-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: aula-php | |
-- ------------------------------------------------------ | |
-- Server version 5.7.26-0ubuntu0.19.04.1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
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
<html> | |
<head> | |
<link rel="stylesheet" href="index.css"> | |
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="urna"> | |
<form method="POST"> |
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 candidatoVotado = document.getElementById('candidato-votado'); | |
const identificacaoVoto = document.getElementById('identificacao-voto'); | |
const corrigir = document.getElementById('corrigir'); | |
const confirmar = document.getElementById('confirmar'); | |
const fotoCandidato = document.getElementById('foto-candidato'); | |
const form = document.getElementById('formulario'); | |
if(!candidatoVotado) { | |
throw new Error('Nenhum input com o id candidato-votado adicionado'); | |
} |
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 Express from 'express'; | |
export class Server { | |
app = Express(); | |
startup() { | |
this.setupRoutes(); | |
this.app.listen(3000, () => console.log("Listening...")); | |
} |
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 { EntradaTexto } from './EntradaTexto'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<EntradaTexto /> | |
</div> | |
); | |
} |
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.*; | |
class Main { | |
public static void main(String[] args) { | |
String palavra = "book"; | |
List<Character> letras = new ArrayList<>(); | |
for(char letra = 'a'; letra <= 'z'; letra++) { | |
letras.add(letra); |
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.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
/** | |
* | |
* @author JEFFERSON | |
*/ |
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
Show hidden characters
{ | |
"defaultSeverity": "error", | |
"extends": [ | |
"tslint:recommended", | |
], | |
"jsRules": {}, | |
"rules": { | |
"semicolon": [ | |
true, | |
"never" |
NewerOlder