Skip to content

Instantly share code, notes, and snippets.

View jeffersonchaves's full-sized avatar
😎
Focusing

Jefferson Chaves jeffersonchaves

😎
Focusing
  • Instituto Federal do Paraná - IFPR
  • Foz do Iguaçu - PR
View GitHub Profile
@jeffersonchaves
jeffersonchaves / dockerfile
Last active April 7, 2025 21:40
dockerfile
FROM ubuntu:latest AS build
RUN apt-get update
RUN apt-get install openjdk-21-jdk -y
COPY . .
RUN apt-get install maven -y
RUN mvn clean install
@jeffersonchaves
jeffersonchaves / php_bank.php
Last active February 6, 2025 10:36
Banco PHP
<?php
//Globais
$clientes = [];
$contas = [];
//Cliente que sempre existe
// $cliente = [
// "nome" => "John Doe",
// "cpf" => "00000000000", //11 digitos
<?php
$pokeNome = readline("informe o pokémon: ");
$url = "https://pokeapi.co/api/v2/pokemon/$pokeNome";
$arquivo = file_get_contents($url);
$pokemon = json_decode($arquivo, true);
@jeffersonchaves
jeffersonchaves / cineFind.js
Last active January 15, 2025 18:23
cineFind.js
function cineFind(movieName){
const apiUrl = `https://api.themoviedb.org/3/search/movie?api_key=2dbca7a779fef19d8dc0acc77384df5a&query=${movieName}&language=pt-BR`;
fetch(apiUrl)
.then(response => response.json())
.then(data => {
if (data.results.length > 0) {
const movie = data.results[0];
document.getElementById('results').innerHTML +=
public interface OrdemServicoRepository extends JpaRepository<OrdemServico, Long> {
}
public interface ComentarioRepository extends JpaRepository<Comentario, Long> {
}
public interface ClienteRepository extends JpaRepository<Cliente, Long> {
}
package br.edu.ifpr.ordemservicoapi.models;
public enum StatusOrdemServico {
ABERTA, FINALIZADA, CANCELADA;
}
package br.edu.ifpr.ordemservicoapi.models;
import jakarta.persistence.*;
import java.time.LocalDate;
import java.util.List;
public class OrdemServico {
private Long id;
public class Cliente {
private Long id;
private String nome;
private String email;
private String telefone;