Skip to content

Code Journal is a compilation of small ideas that I code in my spare time to have fun and try new things. It includes work with math, fractals and image generation.

License

Notifications You must be signed in to change notification settings

the-other-mariana/code-journal

Repository files navigation

Code Journal

This repo has small codes and algorithms that I do for fun. Sometimes my brain tries to be nerd.
All entries should soon have a pdf file that explains the idea behind each code.

Content

An intuitive equation to create a water drop form, written in Mathematica. The pdf shows the pipeline.

alt text

Entry 002 Line Flowers

Some program in Python that makes random flowers. The pdf shows the pipeline.

alt text

Some program in Python that implements a line function to paint a straight line from point to point inside an image. The pdf shows the pipeline.

alt text

Small Mathematica notebook that creates a worm-like animation in a .mov file. The preview output is the following.

alt text

Script in Python that creates a flower-like torus object in Autodesk Maya. The pdf shows the overall algorithm.

alt text

Some program in Python that draws an exact regular polygon spiral image, importing my custom line module from Entry 003. The pdf shows the pipeline and mathematical analysis to make it exact for any polygon. I had so much fun.

alt text

Entry 007 Fractal Tree

Some program in Python that draws a simple fractal tree, importing my custom line module from Entry 003. A sample output I got was the following.

alt text

Program in Python that draws a Sierpinski Triangle fractal, importing my custom line module from Entry 003. The pdf file explains the logic followed.

alt text

Program in Python that draws a Koch Snowflake fractal, importing my custom line module from Entry 003. The pdf shows the algorithm followed.

alt text

Program in Python that, given a string, finds the length of the longest substring without repeating characters.

Output

Input: "awwebbz"
Output: 3	// "web"

Program in Python that approximates the derivative of a function (sine function) using the limit definition of the derivative. The pdf explains the logic followed.

img

Program in Python that, given a matrix perlin noise values (reward), finds the optimal trayectory given a random start point inside a grid of dimensions $N \times N$ using Bellman's Optimality Equations solved for Q using value iteration as a numerical approximation to the equation's solution. The pdf explains the logic followed.

img

About

Code Journal is a compilation of small ideas that I code in my spare time to have fun and try new things. It includes work with math, fractals and image generation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages