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 | |
| import matplotlib.pyplot as plt | |
| w = 400 | |
| h = 300 | |
| def normalize(x): | |
| x /= np.linalg.norm(x) | |
| return x |
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
| /// ASTContext needed, you can get it from CompilerInstance | |
| int64_t getIntFromExpr(const Expr *E, const ASTContext *C) { | |
| clang::Expr::EvalResult R; | |
| if (E->EvaluateAsInt(R, *C)) { | |
| return R.Val.getInt().getExtValue(); | |
| } | |
| /// Could be that returning -1 is not safe, you should modify this | |
| return -1; | |
| } |
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
| FROM python:3 | |
| ENV PYTHONUNBUFFERED 1 | |
| RUN mkdir /code | |
| WORKDIR /code | |
| ADD requirements.txt /code/ | |
| RUN pip install -r requirements.txt | |
| ADD . /code/ |
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
| Nombre Proyecto: | |
| ---------------- | |
| Breve descripci贸n de la aplicaci贸n, y un listado de las funcionalidades m谩s relevantes: | |
| * Caso de uso 1 | |
| * Caso de uso 2 | |
| * Caso de uso 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
| import re | |
| import PyPDF2 | |
| path_file = "..." | |
| media_pond = 11.23 | |
| meritos = 0.9 | |
| file = open(path_file, "rb") | |
| pdfReader = PyPDF2.PdfFileReader(file) |