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
| <!DOCTYPE html> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link rel="stylesheet" href="./style.css"> | |
| <meta | |
| name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Cadastro de Produto</title> | |
| </head> | |
| <body> |
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
| const url = "http://localhost:3000/usuarios"; | |
| const apiListarUsuarios = async () => { | |
| try { | |
| const response = await fetch(url); | |
| if (!response.ok) | |
| // response.status | |
| throw new Error(`Erro ao obter dados da api: ${response.status}`); | |
| const jsonData = await response.json(); | |
| console.log("GET", response.status); // 200 no Json-Server |
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
| <!DOCTYPE html> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link rel="stylesheet" href="./style.css"> | |
| <meta | |
| name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Cadastro de Produto</title> | |
| </head> | |
| <body> |
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 numpy as np | |
| # Definindo Arrays | |
| a = np.array([1., .5, 2.5]) | |
| a = np.array([1., .5, 2.5], dtype = float) | |
| m = np.array([[1,2,3], [4,5,6], [7,8,9],[7,8,9],[7,8,9],[7,8,9],[7,8,9]]) | |
| a.shape #dimensões do array |
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
| # pip install flask | |
| # pip instal flask-sqlalchemy | |
| # sudo apt-get install libpq-dev | |
| # sudo pip install psycopg2 | |
| # sudo pip install redshift-sqlalchemy | |
| # sudo pip install sqlparse | |
| # sudo pip install mysqlclient |
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 multiprocessing | |
| import time | |
| class Monitor(multiprocessing.Process): | |
| def __init__(self, ): | |
| multiprocessing.Process.__init__(self) | |
| self.exit = multiprocessing.Event() |
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
| #include<stdio.h> | |
| int main(){ | |
| int entrada, horas, minutos, segundos, resto; | |
| printf("entrada em segundos:"); | |
| scanf("%d", &entrada); | |
| horas = entrada / 3600; | |
| resto = entrada % 3600; | |
| minutos = resto / 60; | |
| segundos = resto % 60; |
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
| #include <stdio.h> | |
| #include<stdlib.h> | |
| #include<time.h> | |
| int **CriarMatriz(int L, int C){ | |
| // Aloca as linhas da matriz | |
| int **m = calloc(L, sizeof(int *)); | |
| // Aloca as colunas da matriz | |
| int i, j; |
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
| #include <stdio.h> | |
| #include<stdlib.h> | |
| #include<time.h> | |
| int main(void) { | |
| // Alocação Dinâmica e Inicialização de uma Matriz |
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
| #include <stdio.h> | |
| #include<stdlib.h> | |
| #include<time.h> | |
| int main(void) { | |
| // Alocação Dinâmica e Inicialização de uma Matriz |
NewerOlder