Skip to content

Instantly share code, notes, and snippets.

@RQF7
RQF7 / compiler.cpp
Created December 31, 2018 07:37
Generator of programs for CULET. http://www.comunidad.escom.ipn.mx/ALIROB/CULET
/**
* compiler.cpp
* Generator of programs for the head (rotator cube).
* CULET: a Turing machine with Cubelets and Lego.
*
* Dependencies:
* + jsoncpp: https://github.com/open-source-parsers/jsoncpp
*/
#include <fstream>
@RQF7
RQF7 / motor.c
Last active December 7, 2018 18:33
Source code for T-bugs. https://youtu.be/1kzht-VDU5w
/**
* Program for the motor block.
* T-bugs.
* ALIROB IPN.
*/
#include "cubelet.h"
/** ID's of the rotator. */
#define CONTROLER 816343
@RQF7
RQF7 / contructores.cpp
Last active March 15, 2018 15:59
Diferencia entre copiar y mover en C++
/*
* Constructores para la clase AES.
* Para simplificar, estoy suponiendo que solo hay un arreglo
* miembro (la llave), en lugar de tres.
*/
/*
* Constructor normal: recibe el tamaño de llave y reserva
* el espacio para el arreglo de la llave.
*/