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
clear; clc; cla; clf; close all; format long; | |
global Ccb Chp Chl Cre zB; | |
% Physical constants | |
g = 9.81; % m / s^2 | |
rho = 1000; % kg / m^2 | |
nu = 0.9e-6; % m^2 / s | |
% Given properties |
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 <Arduino.h> | |
String pin_label[] = { | |
" 15 (SDA): ", | |
" 4 (SCL): ", | |
" 9 (RST): " | |
}; | |
volatile unsigned int num_interrupts[] = { 0, 0, 0 }; |
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 <iostream> | |
#include <stdio.h> | |
#include <string.h> | |
#include <openssl/rsa.h> | |
#include <openssl/pem.h> | |
#include <openssl/err.h> | |
#define CRYPTO_RSA_KEY_LEN_4096 4096 | |
#define CRYPTO_RSA_KEY_LEN_2048 2048 | |
#define CRYPTO_RSA_KEY_LEN_1024 1024 |
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
// We control two systems with two tags: | |
// - when Dirty, a system adds a Texture component to an entity | |
// - when Visible, a system renders the Texture component | |
// | |
// Visible is set on a base entity and inherited by the textured entity | |
... | |
ecs_entity_t eOverlay = ecs_new_w_pair(world, EcsChildOf, ui->e); | |
ecs_set_name(world, eOverlay, "debugOverlay"); | |
ecs_add(world, eOverlay, Visible); | |