This file contains 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 requests | |
import bs4 | |
import re | |
URL_GACETA = "" # link de la noticia | |
r = requests.get(URL_GACETA) # request | |
if r.status_code == 200: | |
s = bs4.BeautifulSoup(r.text, "html.parser") | |
noticia = s.find(class_="newsBody").getText() # busca la clase "news body" que supongo, hay una por noticia | |
noticia = noticia.replace("<p>","").replace("</p>","")) # remueve los tags de html |
This file contains 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
---------------Marcas | |
INSERT INTO Marcas (Descripcion, EstaEliminado) VALUES ('Coca Cola', 0); | |
INSERT INTO Marcas (Descripcion, EstaEliminado) VALUES ('Pepsi', 0); | |
INSERT INTO Marcas (Descripcion, EstaEliminado) VALUES ('Manaos', 0); | |
---------------Rubros | |
INSERT INTO Rubros (Descripcion, EstaEliminado) VALUES ('Bebidas', 0); | |
INSERT INTO Rubros (Descripcion, EstaEliminado) VALUES ('Snacks', 0); | |
--------------Lista Precio |
This file contains 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 <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
#include <GL/glu.h> | |
#include <stdio.h> | |
//compile g++ -Wall -Wextra -g -O3 -lGL -lGLU -lSDL2 main.cpp -o opengl_sdl | |
int main(int argc, char* args[]) | |
{ | |
SDL_GLContext context; |
This file contains 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
//////////////////////////////////////////////////// | |
//Proyecto: (1000/250) juegos en 1 | |
//////////////////////////////////////////////////// | |
//Autor: Juan Ignacio Rodríguez | |
//Materia: Lab III | |
//////////////////////////////////////////////////// | |
//Descripcion: el proyecto consta de 4 juegos | |
//en la pantalla LCD 16x2 con un menu de selección | |
//y 4 botones: arriba(pin 6), abajo(pin 9), | |
//derecha(pin 8) e izquierda(pin 7). |
This file contains 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
#shader vertex | |
#version 330 core | |
layout(location = 0) in vec4 position; | |
void main() | |
{ | |
gl_Position = position; | |
}; |
This file contains 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
--1 | |
CREATE TABLE "Libros" ( | |
"CodigoLibro" INTEGER NOT NULL UNIQUE, | |
"Titulo" VARCHAR NOT NULL, | |
"CantidadPaginas" INT NOT NULL, | |
"FechaEdicion" DATE NOT NULL, | |
"Genero" VARCHAR NOT NULL, | |
"CodigoEditorial" INT NOT NULL, | |
FOREIGN KEY("CodigoEditorial") REFERENCES "Editoriales"("CodigoEditorial"), | |
PRIMARY KEY("CodigoLibro" AUTOINCREMENT) |
This file contains 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 | |
def get_files(path): | |
arr = os.listdir(path) | |
print(arr) | |
return arr | |
def replace_in_files(path, words,uppers=True): | |
files = os.listdir(path) | |
for f in files: |
This file contains 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
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
eth0: | |
addresses: | |
- 10.0.0.8/24 | |
nameservers: | |
addresses: [4.2.2.2, 8.8.8.8] | |
routes: |