Skip to content

Instantly share code, notes, and snippets.

//Recursive ray tracer
void RayEngine::trace(
const Ray& r,
const int depthIn,
const double effect,
Vec3 &color,
const bool click,
bool &bSphere, // fixme should be const, needs to be copied below
Vec3 &objectNum,
lattice/makefile under linux
verilator project and folder structure
kernel / send signals to specific threads + export issue
signal to userspace with fifo
simple vma kernel module
git for companies under 10 people
how to work on powerpoint with an older person (josef)
circleci for vivado
jenkins for lattice
@esromneb
esromneb / grc-Dockerfile
Created February 13, 2022 03:28
Dockerfile for gnuradio on ubuntu
FROM ubuntu:focal-20210827
MAINTAINER esromneb
ENV DEBIAN_FRONTEND noninteractive
ENV DISPLAY :0
ENV LC_ALL=C
RUN apt-get update && \
apt-get install -y \
@esromneb
esromneb / Dockerfile
Created August 27, 2022 23:39
Dockerfile to install the travis-cli util
FROM ubuntu:focal-20220531
MAINTAINER ben
ENV DEBIAN_FRONTEND noninteractive
ENV DISPLAY :0
ENV LC_ALL=C
RUN apt-get update && \
apt-get install -y \
@esromneb
esromneb / file.c
Created September 14, 2022 10:34
ffo_lut as a function not a LUT
// https://stackoverflow.com/questions/25585066/removing-slow-int64-division-from-fixed-point-atan2-approximation
uint8_t ffo_lut(const int i) {
if(i <= 1) {
return i;
}
if( i <= 3) {
return 2;
}
if( i < 8) {
return 3;