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; | |
public class Media { | |
public static void main(String args[]) { | |
int i = 0, soma = 0; | |
float media = 0; | |
int notas[] = new int[50]; | |
Scanner entrada = new Scanner(System.in); | |
for ( i = 0 ; i < notas.length ; i++ ) { |
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
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
use Illuminate\Contracts\Validation\Validator; | |
use Illuminate\Http\Exceptions\HttpResponseException; | |
class StoreCategoryRequest extends FormRequest | |
{ |
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
// Crie um objeto FormData para armazenar o arquivo que será enviado | |
var formData = new FormData(); | |
// Anexe o arquivo selecionado pelo usuário ao objeto FormData | |
// $('#arquivo')[0] pega o elemento DOM real para acessar os arquivos selecionados | |
formData.append('arquivo', $('#arquivo')[0].files); | |
// Configure a solicitação AJAX | |
$.ajax({ | |
// Especifique a URL do script PHP que receberá o arquivo |
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
Git Comandos Essenciais: | |
Verificar mudanças no repositório: | |
git status | |
Verificar a branch atual: | |
git branch | |
Criar e mudar para uma nova branch: | |
git checkout -b "nome_da_branch" |
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
<!DOCTYPE html> | |
<html lang="pt-BR" data-bs-theme="light"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> |