This file contains hidden or 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 escola | |
| WITH | |
| OWNER = postgres | |
| ENCODING = 'UTF8' | |
| CONNECTION LIMIT = -1 | |
| IS_TEMPLATE = False; | |
| CREATE SCHEMA escola AUTHORIZATION postgres; | |
| CREATE SCHEMA IF NOT EXISTS escola; |
This file contains hidden or 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 table professor ( | |
| id_prof int generated always as identity, | |
| nome_prof varchar (20) not null, | |
| titulacao varchar (40) not null, | |
| constraint tipo_titulo check (titulacao in ('assistente','associado','titular')) | |
| ); | |
| create table prof_audit ( | |
| id_prof_audit int generated always as identity, | |
| id_prof int not null, |
This file contains hidden or 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 table empregado ( | |
| id_emp int generated always as identity, | |
| nome_emp varchar (40) not null, | |
| sobrenome_emp varchar (40) not null, | |
| primary key (id_emp) | |
| ); | |
| create table emp_audit ( | |
| id_emp_audit int generated always as identity, | |
| id_emp int not null, |
This file contains hidden or 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.Arrays; | |
| public class Main { | |
| public static void main(String[] args){ | |
| // Estrutura vetor com Numeros | |
| int[] numeros = new int[5]; | |
| numeros[0] = 1; | |
| numeros[1] = 2; | |
| numeros[2] = 3; |
This file contains hidden or 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 Main { | |
| public static void main(String[] args){ | |
| for(int i = 1; i <= 10; i++){ | |
| for(int j = 1; j <= 10; j++){ | |
| System.out.println(j + "x" + i + " = " + j * i); | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or 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.Locale; | |
| import java.time.LocalDate; | |
| import java.time.LocalDateTime; | |
| import java.time.format.TextStyle; | |
| public class Main { | |
| public static void main(String[] args){ | |
| String nome = "Jhon"; |
This file contains hidden or 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
| version: '3' | |
| services: | |
| db: | |
| image: mysql:latest | |
| container_name: wordpress-database | |
| restart: always | |
| volumes: | |
| - ./db-data:/var/lib/mysql |
This file contains hidden or 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
| version: '3' | |
| services: | |
| wp: | |
| image: wordpress:latest # https://hub.docker.com/_/wordpress/ | |
| ports: | |
| - ${IP}:80:80 # change ip if required | |
| volumes: | |
| - ./config/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini | |
| - ./wp-app:/var/www/html # Full wordpress project |
This file contains hidden or 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
| baseURL = 'https://jonathasborges1.github.io/tenor/' | |
| languageCode = "pt-br" | |
| title = 'Tenor' | |
| # Theme | |
| theme = 'loveit' | |
| # Params | |
| enableEmoji = true | |
| enableRobotsTXT = true |
This file contains hidden or 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
| // Assinale o codigo a seguir em linguagem de programação Python. | |
| // Indique a saída correta do programa. | |
| def rotina(array): | |
| for p in range(0,len(array)): | |
| element = array[p] | |
| while p > 0 and array[p-1] > element: | |
| array[p] = array[p-1] | |
| p -= 1 |