sudo apt install openjdk-17-jdk openjdk-17-jre -y
java -version
javac -version
sudo update-alternatives --config java- criar variavel de ambiente a partir do caminho informado
| docker run -d -p 5433:5432 --name psql --volumes-from apiproduto-postgres -e POSTGRESQL_PASS=postgres postgres:alpine |
| import requests | |
| user_name = input("digite aqui o seu usuário do gitlab: ") | |
| response = requests.get(f"https://gitlab.com/api/v4/users/{user_name}/projects") #type -> <class 'requests.models.Response'> | |
| lista_meus_projetos = response.json() #type -> <class 'list'> O metodo json converte o tipo para lista | |
| for projeto in lista_meus_projetos: | |
| print(f"nome do projeto: {projeto['name']} \nURL do projeto: {projeto['web_url']}\n") |
| from datetime import datetime | |
| user_input = input('entre com seu objetivo e deadline separados por (:)\n') | |
| #colocando a string na lista | |
| input_list = user_input.split(':') | |
| #tratando a lista | |
| objetivo =input_list[0] | |
| deadline = input_list[1] | |
| #preparando calculo dos dias | |
| data_deadline = datetime.strptime(deadline, "%d.%m.%Y") |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| typedef struct aluno { | |
| char nome[50]; | |
| char matricula[10]; | |
| float notas[2]; | |
| float media; | |
| bool aprovacao; |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| typedef struct funcionario { | |
| char nome[50]; | |
| int idade; | |
| char sexo; | |
| char CPF[10]; | |
| char dataNascimento[3]; | |
| int codigoSetor; |
| // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| import 'package:flutter/material.dart'; | |
| void main(){ | |
| runApp(MaterialApp( | |
| home: Scaffold( | |
| appBar: AppBar( |
| g++ arquivo.cpp -o nomeDoExec -Wall | |
| g++ -o NOME_DO_EXECUTAVEL nomeDoArquivo.cpp | |
| gcc -o NOME_DO_EXECUTAVEL nomeDoArquivo.cpp |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <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"> | |
| <!--<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> --> | |
| <script defer src="https://pyscript.net/alpha/pyscript.js"></script> | |
| <title>Document</title> | |
| </head> |