Skip to content

Instantly share code, notes, and snippets.

View CQCumbers's full-sized avatar

Alexander Zhang CQCumbers

View GitHub Profile
@CQCumbers
CQCumbers / fractal.c
Created February 7, 2021 20:42
N64 Fractal Path Tracer
#include <math.h>
#include <stdint.h>
#include <libdragon.h>
typedef double vec3[3];
const double epsl = 0.0000005;
// vector dot product
static double dot(vec3 v0, vec3 v1) {
double x2 = v0[0] * v1[0];
@CQCumbers
CQCumbers / imgprint.h
Last active November 7, 2020 01:36
print pixel buffers to stdout using ANSI escapes
#ifndef IMGPRINT_H
#define IMGPRINT_H
#include <stdio.h>
// w and h are image width and height in pixels
// width must always be a whole number of bytes
// print 24bpp RGB888 image
// requires true color support
@CQCumbers
CQCumbers / dokku_push_trace.txt
Last active September 6, 2019 18:19
git push dokku master output
+ export DOKKU_HOST_ROOT=/home/dokku
+ DOKKU_HOST_ROOT=/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOCKER_BIN=docker
+ DOCKER_BIN=docker
+ export DOKKU_IMAGE=gliderlabs/herokuish:latest
+ DOKKU_IMAGE=gliderlabs/herokuish:latest
[
{
"backcolor": "#b0b0b0",
"name": "M65 SA/DSA Template"
},
[
{
"c": "#d48600",
"t": "#e4dedd",
"p": "SA",
[
{
"name": "WhiteFox Aria"
},
[
{
"c": "#0084c2",
"p": "GMK",
"a": 6
},