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 { request } from "graphql-request"; | |
| import { User } from "../../entity/User"; | |
| import { startServer } from "../../startServer"; | |
| let getHost = () => ""; | |
| beforeAll(async () => { | |
| const app = await startServer(); | |
| const { port } = app.address(); | |
| getHost = () => `http://127.0.0.1:${port}`; |
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
| with open('entrada.txt') as texto, open('saida.txt', 'w') as saida: # Crie um arquivo chamado 'entrada.txt' e cole o texto dentro. Não é necessário criar 'saida.txt' o programa já irá criá-lo automaticamente. | |
| for linha in texto.readlines(): | |
| linha = linha.replace('\n', '') | |
| saida.write(linha) | |
| texto.close() | |
| saida.close() |
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 os | |
| gon = int(input('Qual gon: ')) | |
| for x in range(1, 9): | |
| os.system('curl -O http://estacio.webaula.com.br/cursos/gon%d/conteudo_aula_teletransmitida/_ppt/arq/Aula_0%d.ppt' % (gon, x)) | |
| os.system('curl -O http://estacio.webaula.com.br/cursos/gon%d/conteudo_aula_teletransmitida/_ppt/arq/Aula_10.ppt' % gon) | |
| os.system('curl -O http://estacio.webaula.com.br/cursos/gon%d/conteudo_revisao/revisao_av1/_ppt/_ppt/revisaoav1.ppt' % gon) | |
| os.system('curl -O http://estacio.webaula.com.br/cursos/gon%d/conteudo_revisao/revisao_av2/_ppt/_ppt/revisaoav2.ppt' % gon) |