Max Simmonds - Blog

A website featuring my projects

View the PROJECT on GitHub maxsimmonds1337/maxsimmonds.engineer

Programming Portfolio


Face Morphin!

Posted: 26/09/2023

Last Edited: 26/09/2023

An algorithm I designed that morphs faces. There’s two branches, one for human-human morphing, and another for human-cartoon morphing. The code uses dlib to find pertient facial points. My algorithm then coralates these points between two images, and generates a triangular mesh over both images, using delaunay triangles. An intermediate shape is generated, that is somewhere between the two triangles, scaled between 0-1. The Affine transformation is calculated to determine the position of a pixel in th enew intermediate shape. This is done for both triangles, and pixels in the same position in the intermediate shape are cross-dissolved. This post goes into detail about the math and algorithm, with examples of the face morphing.


My first Go with GO!

Posted: 23/02/2023

Last Edited: 23/02/2023

My first attempt with go, a baby tracking app that’s hosted on GCP.


Numerically Controlled Oscillator, C

Start Date: 01/07/2022

End Date: 30/07/2022

A numerically controlled oscillator is a method for generating a value that changes sinusoidally at a given frequency. Usually, sine waves and cosine waves are generated via a lookup table. This is an alternative method that doesn’t require a large table of memory.


Markdown Graph Interpreter, Python

Start Date: 01/08/2022

End Date: 26/08/2022

When I was working on the NCO, Numerically Controller Oscillator I realised that there was no convienent way to plot graphs in Markdown. The only thing that came close was Mermaid, which allows you to use text and code to generate diagrams, but no real graphs. So, graphPlotter is a python script that’s called from a git hook, that searches through committed markdown files that have been modified, searches for the tag “```graphPlotter” and interprets the text after.

An example might be, to plot an arrow, :

```graphPlotter
-> 0 0 0.8 0 0.02 0.1
`` `

This would render:

image

The alt text is then changed to the command, so that the data isn’t lost.


CORS Proxy

Start Date: 13/09/2022

End Date: 17/09/2022

I recently wanted to present (on my CV) my leetcode stats. Leetcode doesn’t have a dedicated way of showing this data, unless you’re logged in. In order to use their GraphQL API


JS Wave Emulator

Start Date: 20/09/2022

End Date:

Some javascript code that allows you to “drop” a stone into a virtual pond, and watch the waves it generates propagate.