Skip to content

Instantly share code, notes, and snippets.

View augustoguerrero's full-sized avatar
🛩️

Augusto Guerrero augustoguerrero

🛩️
View GitHub Profile
Procedure InsertarOrdenado (var pri: lista; num:integer);
var
ant,nue,act:lista;
begin
new(nue);
nue^.elem := num;
nue^.sig := nil;
if (pri = nil) then
pri := nue;
@augustoguerrero
augustoguerrero / circulos.pde
Created August 31, 2016 22:37
Creación de circulos en processing
Circulo padre;
Circulo[] hijos1 = new Circulo[7];
Circulo[] hijos2 = new Circulo[4];
Circulo[] hijos3 = new Circulo[3];
void setup() {
size(600, 600);
noStroke();
smooth();
padre = new Circulo(200, #BBDEFB);
@augustoguerrero
augustoguerrero / Monstruito
Created August 10, 2016 16:50
Este codigo lo sacamos de internet y lo fuimos tocando
/*
* Test send/receive functions of IRremote, using a pair of Arduinos.
*
* Arduino #1 should have an IR LED connected to the send pin (3).
* Arduino #2 should have an IR detector/demodulator connected to the
* receive pin (11) and a visible LED connected to pin 3.
*
* The cycle:
* Arduino #1 will wait 2 seconds, then run through the tests.
* It repeats this forever.
ORG 1000H
FRASE_1 DB "ESTA ES UNA FRASE"
LETRA_A DB "A"
FRASE_2 DB "ESTO ES OTRA COSA"
ORG 2000H
MOV CX, OFFSET FRASE_1 ; Se guarda las direcciones
MOV DX, OFFSET FRASE_2 ; de las frases
MOV AL, 0 ; Inicializa este contador en 0
SEGUIR: MOV BX, CX ; Se guarda la direccion de la frase 1 en BX
@augustoguerrero
augustoguerrero / parcial.pas
Created July 2, 2016 01:37
Parcial CADP Completo 11/6/2016 - Resuelto
program parcial1;
rango1 = 1..100;
type
camion = record
patente:string;
año_fabricacion:integer;
capacidad:real;
end;
#include <stdio.h>
#include "contiki.h"
#include "dev/i2cmaster.h"
#include "dev/light-ziglet.h"
#include "dev/leds.h"
/*---------------------------------------------------------------------------*/
#define SENSOR_READ_INTERVAL (CLOCK_SECOND / 80)
#define SENSOR_SAMPLE_INTERVAL (CLOCK_SECOND / 40)
//uint32_t medir_luz(uint32_t muestras);