Skip to content

Instantly share code, notes, and snippets.

@MURPHYENGINEERING
MURPHYENGINEERING / Q2_NonlinearApprox.m
Last active April 17, 2021 02:52
HW 7 Problem 2(a)
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
#include <Arduino.h>
String pin_label[] = {
" 15 (SDA): ",
" 4 (SCL): ",
" 9 (RST): "
};
volatile unsigned int num_interrupts[] = { 0, 0, 0 };
@MURPHYENGINEERING
MURPHYENGINEERING / rsa.hpp
Created March 16, 2022 10:39 — forked from lillypad/rsa.hpp
OpenSSL RSA Encryption / Decryption C++ Wrapper
#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
// 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);