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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Use: python genPrimos.py > primos.csv | |
| # | |
| import math | |
| prim = [] |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Use: | |
| # python testSort.py [size] [space] {view} | |
| # size: Tamaño de la muestra. | |
| # space: Limite máximo de los numero aleatorios a generar. | |
| # view: Bandera (1: True, 0: False) que controla la impreesión paso a paso. | |
| # |
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
| <style type="text/css"> | |
| #pop | |
| { | |
| color: blue; | |
| font-weight: bold; | |
| cursor: pointer; | |
| } | |
| #popCont | |
| { |
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
| #!/bin/sh | |
| # Copyright (C) 2009-2012 David Bird (Coova Technologies) <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
| # | |
| # Javier Herran ([email protected]) | |
| # V 1.0 (2015-07-13) | |
| # Ejemplo de uso (descarga el primer episodio de Air Gear): | |
| # python3 get_submanga.py http://omg.submanga.com/pages/4/6/678935f | |
| # | |
| import subprocess as sub | |
| import shlex as lex |
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) |
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
| # -*- 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
| # -*- 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
| /* | |
| * | |
| * Fractal: Curva Del Dragon | |
| * Javier Herran ([email protected]) | |
| * UPC - 2017 | |
| * | |
| */ | |
| import javax.swing.JFrame; | |
| import javax.swing.JPanel; |
OlderNewer