Skip to content

Instantly share code, notes, and snippets.

View jrepp's full-sized avatar
👨‍🍳
cookin'

Jacob Repp jrepp

👨‍🍳
cookin'
View GitHub Profile

The Renaissance and the Internet are two transformative periods in history that have had far-reaching impacts on art, science, and society as a whole. While they occurred in vastly different eras, some interesting parallels can be drawn between the two.

Impact on Art: The Renaissance marked a significant shift in European art, moving away from the rigid, formulaic style of the Middle Ages towards a more naturalistic, humanistic approach. Artists like Leonardo da Vinci, Michelangelo, and Raphael pioneered techniques such as perspective, sfumato, and chiaroscuro, which brought a new level of realism and depth to their works. The Renaissance also saw the rise of individualism, with artists gaining recognition and status in society.

Similarly, the Internet has democratized art, making it more accessible to people worldwide. Digital tools and platforms have empowered artists to create, share, and promote their work on a global scale. The Internet has also given rise to new art forms, such as digital art, interne

@jrepp
jrepp / main.c
Created December 13, 2023 01:10
STM32 PWR_STANDBY modifications to main.c
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file PWR/PWR_STANDBY/Src/main.c
* @author MCD Application Team
* @brief This sample code shows how to use STM32WLxx PWR HAL API to enter
* and exit the standby mode with a wakeup pin or external reset.
******************************************************************************
* @attention
*
@jrepp
jrepp / busflyweight.cpp
Created September 9, 2022 18:05
Example of using a flyweight pattern to lock and protect access to a hardware bus
#include <iostream>
#include <unordered_map>
#include <mutex>
#include <thread>
#include <vector>
#include <atomic>
#include <cstdint>
#include <cassert>
#include <chrono>
#include <random>
@jrepp
jrepp / Dockerfile
Created July 15, 2022 16:10
Docker container with Debian bullseye, clang-14 and latest GNU C++ libraries
FROM debian:bullseye-slim AS builder
LABEL MAINTAINER jacobrepp@gmail.com
WORKDIR /etc/apt
COPY sources.list sources.list
RUN chmod 0644 sources.list
# Need snapshot signing key
RUN curl https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
@jrepp
jrepp / hash_mul_test.c
Last active March 2, 2022 14:50
Multiplicative hash test program that stacks a few algorithms against each other and shows their relative collisions and table distributions.
// This is a file that produces statistics for various integer multiplicative and mix functions to profile their performance
// for a representative problem (apriltag cluster hashing)
//
// the output of this program is a CSV of hash collisions and depth (including p90 depth)
// additional the full hash table distributions for each sample set is printed
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <assert.h>
typedef uint32_t (*str_hash_func)(const char *a);
struct str_hash_func_desc {
@jrepp
jrepp / output_subset.txt
Created February 22, 2022 17:29
math output from tagTestBench - first iteration, detection 0
This file has been truncated, but you can view the full file.
----- estimate tag pose: 0
[math] [../common/matd.c:58] create(3, 1) = { { 0 }, { 0 }, { 0 } }
[math] [../common/matd.c:83] create_create_data(3, 1) = { { -0.01175 }, { 0.01175 }, { 0 } }
[math] [../common/matd.c:58] create(3, 1) = { { 0 }, { 0 }, { 0 } }
[math] [../common/matd.c:83] create_create_data(3, 1) = { { 0.01175 }, { 0.01175 }, { 0 } }
[math] [../common/matd.c:58] create(3, 1) = { { 0 }, { 0 }, { 0 } }
[math] [../common/matd.c:83] create_create_data(3, 1) = { { 0.01175 }, { -0.01175 }, { 0 } }
[math] [../common/matd.c:58] create(3, 1) = { { 0 }, { 0 }, { 0 } }
[math] [../common/matd.c:83] create_create_data(3, 1) = { { -0.01175 }, { -0.01175 }, { 0 } }
[math] [../common/matd.c:58] create(3, 1) = { { 0 }, { 0 }, { 0 } }
@jrepp
jrepp / live-show-rack-emulation.vcv
Created April 29, 2020 06:55
This is a VCV rack that emulates a good chunk of the rack I created for a live Eurorack performance April 26th, 2020
{
"version": "1.1.6",
"modules": [
{
"id": 1,
"plugin": "Core",
"version": "1.1.6",
"model": "AudioInterface",
"params": [],
"leftModuleId": 36,
@jrepp
jrepp / split-helm-deploy.sh
Created April 28, 2020 23:48
This script will take a helm deployment and split into multiple files, helpful if you just want to diff a single part of the deployment
#!/usr/bin/env bash
for f in $(ls -1 *deploy.yaml); do
echo processing $f
abspath=$(realpath ${f})
# build the output sub-directory
base_name=$(basename ${f})
name_only=${base_name%.*}
mkdir -p $name_only
pushd $name_only
@jrepp
jrepp / Makefile
Last active November 22, 2019 01:24
A test program that shows how you might implement slippery ice blocks in a top down game
# This builds the sample, run using ./ice
ice: ice_movement_sample.cpp
g++ --std=c++17 -Wall -ggdb -O0 -o ice ice_movement_sample.cpp