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
def hola(): | |
print "Hola" | |
return |
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 -*- | |
from PIL import Image, ImageDraw | |
import sys | |
import random | |
from operator import itemgetter | |
import math | |
import matplotlib.pyplot as plt | |
from random import randint | |
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 PIL import Image, ImageDraw | |
import sys | |
import random | |
import math | |
class Vector: | |
def __init__(self, imagen): | |
self.imagen = imagen | |
self.tx = imagen.size[0] | |
self.ty = imagen.size[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
import networkx as nx | |
import matplotlib.pyplot as plot | |
from sys import argv | |
vertices = dict() | |
#Clase Nodo, estructura de informacion | |
class Nodo: | |
def __init__(self, nombre, frecuencia, izquierda, derecha): | |
self.nombre = nombre |
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 networkx as nx | |
import matplotlib.pyplot as plot | |
from sys import argv | |
vertices = dict() | |
#Clase Nodo, estructura de informacion | |
class Nodo: | |
def __init__(self, nombre, frecuencia, izquierda, derecha): | |
self.nombre = nombre |
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 networkx as nx | |
import matplotlib.pyplot as plot | |
from sys import argv | |
vertices = dict() | |
#Clase Nodo, estructura de informacion | |
class Nodo: | |
def __init__(self, nombre, frecuencia, izquierda, derecha): | |
self.nombre = nombre |
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 networkx as nx | |
import matplotlib.pyplot as plot | |
from sys import argv | |
vertices = dict() | |
#Clase Nodo, estructura de informacion | |
class Nodo: | |
def __init__(self, nombre, frecuencia, izquierda, derecha): | |
self.nombre = nombre |
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
##iniciamos | |
set ns [new Simulator] | |
##declaramos el tipo de enrutamiento | |
$ns rtproto LS | |
##archivo para la simulación | |
set nf [open a.nam w] | |
set nt [open trace.tr w] |
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
def main(): | |
amarillo = (255,255,0) | |
RADIO = 50 | |
UMBRAL = 2 | |
CIRCUNFERENCIA = (RADIO *2) * math.pi | |
print "CIRCUNFERENCIA" +str(CIRCUNFERENCIA) | |
mx = [[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]] | |
my = [[1, 2, 1], [0, 0, 0], [-1, -2, -1]] | |
mg = [[0,1,0],[1,-4,1],[0,1,0]] | |
imagen = Image.open("cvb2.png") |
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
def main(): | |
amarillo = (255,255,0) | |
RADIO = 50 | |
UMBRAL = 2 | |
CIRCUNFERENCIA = (RADIO *2) * math.pi | |
print "CIRCUNFERENCIA" +str(CIRCUNFERENCIA) | |
mx = [[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]] | |
my = [[1, 2, 1], [0, 0, 0], [-1, -2, -1]] | |
mg = [[0,1,0],[1,-4,1],[0,1,0]] | |
imagen = Image.open("mc.png") |