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
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Ubuntu", sans-serif;
@jeffersonchaves
jeffersonchaves / application.properties
Last active June 9, 2025 16:49
application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/DATABASE_NAME
#?createDatabaseIfNotExist=true
# &userSSL=false
# &serverTimezone=UTC
# ...
spring.datasource.username=USER
spring.datasource.password=PASSWORD
spring.jpa.hibernate.ddl-auto=update
@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;
}