Skip to content

Instantly share code, notes, and snippets.

View aecanales's full-sized avatar

Alonso Canales aecanales

View GitHub Profile
execve("./pico8", ["./pico8", "-pixel_perfect", "0"], 0x7ef653a0 /* 42 vars */) = 0
brk(NULL) = 0x22c6000
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76f13000
access("/etc/ld.so.preload", R_OK) = 0
openat(AT_FDCWD, "/etc/ld.so.preload", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x76f12000
close(3) = 0
readlink("/proc/self/exe", "/home/picodate/pico-8/pico8", 4096) = 27
openat(AT_FDCWD, "/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
let messages = 0;
let choices = 0;
let lines = 0;
let characters = 0;
function readConstants(sheet)
{
messages = parseInt(sheet.getRange("B2").getDisplayValues());
choices = parseInt(sheet.getRange("B3").getDisplayValues());
lines = parseInt(sheet.getRange("B4").getDisplayValues());
@aecanales
aecanales / run_tests
Created May 8, 2020 21:44
Ejecuta pruebas para la T1 IIC2133 2020-1
#!/bin/sh
echo "Running tests..."
echo "Testing compression..."
echo "256"
./quadtree imgs/256/emblem.png out.png compress 15000
diff -b out.png compressed/256/emblem_h=15000\(alpha=6\).png
@aecanales
aecanales / generate_problems.py
Created June 18, 2019 21:04
Generador de problemas para la T3 del curso IIC2613 @ PUC 2019-1.
from random import randint
from os import sep
MAX_MOVES = 50
PROBLEMS = 20
ROBOTS = [2, 4, 8, 16]
RANGE_X = 20
RANGE_Y = 20