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
fdgaerghr |
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
.LC0: #etiqueta | |
.string "Ingrese el elemento %d del arreglo:" #string | |
.LC1: #etiqueta | |
.string "%d" #string | |
.align 8 #guardado de datos | |
.LC2: #etiqueta | |
.string "\n\n Ingrese el numero que se va a buscar en el arreglo:" #string | |
.align 8 #guardado de datos | |
.LC3: #etiqueta | |
.string "\n\n El numero %d aparece %d veces" #string |
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
.file "algo.c" #nombre del archivo | |
.section .rodata | |
.align 8 | |
.LC0: #etiqueta | |
.string "Ingrese el elemento %d del arreglo:" #definicion de string | |
.LC1: #etiqueta | |
.string "%d" #string | |
.align 8 #guardado de variables para 64 bits | |
.LC2: | |
.string "\n\n Ingrese el numero que se va a buscar en el arreglo:" #string |
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<stdio.h> | |
main() | |
{ | |
int Arr[10]; | |
int num, i, cont = 0; | |
for (i=0; i<11; i++) | |
{ | |
printf("Ingrese el elemento %d del arreglo:", i); |
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 "BS2DEFS.BAS" | |
@ DEVICE INTRC_OSC_NOCLKOUT | |
@ DEVICE MCLR_OFF | |
numero var byte | |
a var portb.7 | |
b var portb.6 | |
c var portb.5 | |
d var portb.4 |
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
from PIL import Image | |
import numpy as n | |
from datetime import * | |
import sys | |
import math | |
def filtroGrisesPromedio(px): | |
for i in xrange(0,px.shape[0]): | |
for j in xrange(0,px.shape[1]): | |
e = px[i][j] |
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
def filtroConvolucion(imagen): | |
x,y = imagen.size | |
px = imagen.load() | |
#MX = [[-1,0,1],[-1,0,1],[-1,0,1]] #mascara lineas horizontales | |
MX = [[-1,0,1],[-2,0,2],[-1,0,1]] | |
#MY = [[1,1,1],[0,0,0],[-1,-1,-1]] #mascara lineas verticales | |
MY = [[1,2,1],[0,0,0],[-1,-2,-1]] | |
imagenNuevaX = Image.new('RGB',(x,y)) | |
imagenNuevaY = Image.new('RGB',(x,y)) |
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 socket as s | |
from sys import argv | |
IP = "127.0.0.1" #HOST | |
PUERTO = 5005 #puerto | |
def armarPaquete(m, cp): #funcion para armar paquetes | |
paquetes = [] # lista | |
b = getbytes(m) # llama a funcion getbytes, lista con bits que representan a cada caracter | |
tramamensaje = armarTrama(b) # llama a armarTrama, arma trama del mensaje en base a lista de bytes |
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 socket as s | |
def servidor(): | |
global c | |
socket = s.socket(s.AF_INET,s.SOCK_DGRAM) | |
socket.bind (("127.0.0.1",5005)) | |
while True: # loop por mensaje recibido, llama a funcion parsear | |
data, addr = socket.recvfrom(1024) # lee info y host que envio msj | |
parsearMensaje(data,addr) #Parsear el mensaje | |
c += 1 |
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
from sys import argv | |
from PIL import Image as I | |
import random as R | |
def generarRuido(m, porcentaje): | |
imagenConRuido = m | |
p = m.load() | |
x,y = m.size | |
totalPixeles = x * y |
OlderNewer