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
| # -*- coding: utf-8 -*- | |
| import sys | |
| import pickle | |
| class Nodo: | |
| def __init__(self): # Nodo principal | |
| self.peso = -1 # Peso del simbolo |
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
| # -*- coding: utf-8 -*- | |
| import math | |
| import sys | |
| class Node(): # Nodo principal | |
| def __init__(self, value): | |
| self.value = value # Contenio del nodo |
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 sys | |
| import math | |
| class Node: | |
| def __init__(self, value): | |
| self.value = value # Carga del node | |
| self.pl = 0 # Profundidad izquierda |
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 math | |
| class Nodo: | |
| valor = None | |
| p = None | |
| l = None | |
| r = None | |
| def __init__(self, valor): |
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
| class Nodo: | |
| valor = None | |
| l = None | |
| r = None | |
| def __init__(self, valor): | |
| self.valor = valor |
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
| /* | |
| * | |
| * Fractal: Curva Del Dragon | |
| * Javier Herran ([email protected]) | |
| * UPC - 2017 | |
| * | |
| */ | |
| import javax.swing.JFrame; | |
| import javax.swing.JPanel; |
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
| # -*- coding: utf-8 -*- | |
| # | |
| # Simulación del valor de PI por el método montecarlo | |
| # Javier Herran ([email protected]) | |
| # UPC - 2017 | |
| # | |
| # | |
| import random | |
| from tkinter import Tk, Frame, Canvas, BOTH, W, Text, END, NORMAL, DISABLED |
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
| # -*- coding: utf-8 -*- | |
| # Python 3.5 | |
| # Django 1.9.7 | |
| from reportlab.pdfgen import canvas | |
| from reportlab.graphics.shapes import Drawing | |
| from reportlab.graphics.barcode.qr import QrCodeWidget | |
| from reportlab.graphics import renderPDF | |
| from io import BytesIO, StringIO | |
| from zipfile import ZipFile, ZIP_DEFLATED |
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 subprocess as sp | |
| def genMat(r, c, v): | |
| mat = [] | |
| row = [v]*c | |
| for i in range(r): | |
| mat.append(row[:]) | |
| return mat |
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 sys | |
| from PyQt5 import QtCore, QtGui, QtWidgets | |
| class Test(QtWidgets.QWidget): | |
| def __init__(self): | |
| super(Test, self).__init__() | |
| self.setObjectName("self") | |
| self.resize(400, 41) |