Teaser for blog post

AllRGB

in javascript, color, art, and algorithms
Moore curve and depth-first-search

AllRGB is a really cool challenge: make an image that contains each of the 16777216 RGB colors exactly once.

I wrote a HTML canvas-based visualization of an AllRGB image being created. It uses several space-filling curves in 2D and 3D.

I made a demo of this at /projects/allrgb and the source is on GitHub.

Read more
Teaser for blog post

Hacktoberfest

in open-source and github

My first Hacktoberfest was a great experience. Hacktoberfest is a yearly event run by DigitalOcean, GitHub, and Twilio that encourages developers to make five GitHub pull requests during October. (I was motivated by the offer of a limited edition t-shirt.)

Read more
Teaser for blog post

Is a color dark?

in javascript and color

Color models

If someone knows only one color model, it's probably RGB. It's a great color space for computers to represent colors, but not intuitive or useful for humans. It's especially not useful when objectively determining whether a color is dark or light.

Read more
Teaser for blog post

Email to Discord webhook

in email, php, discord, and webhook

Custom domain emailing

Earlier this year, I set up my robotics club's website to be able to send and receive emails from its domain. For example, [email protected] or [email protected].

Read more
Teaser for blog post

Rainmeter binary clock line

in lua, rainmeter, and binary

Introduction

This tutorial will create a skin showing the number of seconds from the start of the year in binary with Rainmeter and Lua. Lua can be used with Rainmeter to load and execute skins. We'll make a binary clock that shows the number of seconds elapsed from the beginning of the year. The two source files are in this gist.

Screen recording of the binary Rainmeter skin, a line of 25 blue and white circles.
Final Rainmeter skin.
Read more
Teaser for blog post

Arduino binary clock

in arduino, c, and binary

Introduction

In this project, I used a MAX7219 for the LED dot matrix, and a DS3231 for the RTC module. Complete code here

Read more
Teaser for blog post

Kruskal's maze generation

in javascript, visualization, and algorithm

Introduction

Chances are, you've once wanted to make a progam for generating or solving mazes. There are dozens of maze algorithms. In my opinion, Kruskal's algorithm is the simplest for generating mazes.
I made a demo of this at /projects/kruskal.

Read more
Teaser for blog post

My first blog post

in jekyll and first

Introduction

This post basically just tests the CSS and code formatting on this site.

This is a test for code blocks and syntax highlighting. It's some sample code for a simple Flask route.

@app.route("/")
def index():
    return "This is the homepage"

# some snippet of python
Read more