Skip to content

Instantly share code, notes, and snippets.

// Rust code sample
// This is extracted from a path tracer I wrote for class. I can't
// post the whole thing per the class rules, so you get this redacted
// version instead.
extern crate nalgebra as na;
use super::img::Image;
use super::objects::traits::*;
use super::structs::*;
// Gate is a small web app for quick text entry along with forwarding entered
// text to other endpoints (which I use heavily in my personal workflow). I've
// only done a little coding in Go so far, so I'm sure this code is probably
// not as idiomatic as I'd like. (I'd also ordinarily split this up into
// multiple files. And do several things differently. Hindsight!)
package main
import (
"crypto/md5"