Better HN
topnewbestaskshowjobs
Log inSign up

Gigamegs

0 karma · joined Apr 28, 2025 (1y ago) · 29 submissions

Submissions

comment 1y ago · link · parent

Pure PHP Aho-Corasick algorithm finite state machine) and pattern match with a wildcard and a ternary trie.

Unittest: $tree = new Ahocorasick\Ahocorasick(); $tree->add("AC"); $tree->add("GTG"); $tree->add("AACT"); echo $tree->match("ACCGAGTGCGTGGACAAACTACGATTGTGGAATGAACT","AC*GT"); $this->expectOutputString("ACCGAGT,ACCGAGTGCGT,ACCGAGTGCGTGGACAAACTACGATTGT,ACAAACTACGATTGT,ACTACGATTGT,ACGATTGT");

web+git: https://tetramatrix.github.io/phpahocorasick/

comment 1y ago · link · parent

:: RangeSlider for Winforms :: 1. What it does it do? RangeSlider is a WPF .dll for Winforms.

1.2. Features Trackbar with 2 thumbs where you can select a range not just a value.

2. Requirements - Winforms

3. Installation Download source code and compile.

4. Tutorial Add a reference to the .dll to your project. In designer add an ElementHost Element to your Winforms. In your main class add this code in the constructor:

rs = new BetterControl.RangeSlider(); rs.InitializeComponent(); rs.LowerValue = 30; rs.UpperValue = 90; rs.Minimum = 0; rs.Maximum = 100; this.elementHost1.Child = rs; rs.OnLowerSlider_ValueChanged += new BetterControl.RangeSlider.MyControlEventHandler(rs_OnLowerSlider_ValueChanged); rs.OnUpperSlider_ValueChanged += new BetterControl.RangeSlider.MyControlEventHandler(rs_OnUpperSlider_ValueChanged);

and add the function for the value changed:

void rs_OnLowerSlider_ValueChanged(object sender, double result)

{ MessageBox.Show("L"+result.ToString()); }

void rs_OnUpperSlider_ValueChanged(object sender, double result) { MessageBox.Show("U" + result.ToString()); }

web+Git: https://tetramatrix.github.io/rangeslider/

comment 1y ago · link · parent

Ah yes, welcome to the cursed labyrinth of 2000s web aesthetics—where the ads are plentiful and the content might still be worth the risk. But hey, that’s what ad blockers were invented for, right? Brave souls like you make it through.

comment 1y ago · link · parent

Nice work! My 2D Monster Curve implementation supports efficient quadtree construction, and I’m planning to extend it to higher dimensions: https://tetramatrix.github.io/monstercurves/. Curious—have you thought about using Monster Curves for your octree terrain generator?

comment 1y ago · link · parent

When OpenAI support ?

comment 1y ago · link · parent

Doxmyip

1. What is it and what does it do?

Doxmyip is a simple IP address browser for Windows.

1.2. Features

- Supports the free IP2location Lite database (DB15 binary file) with millions of updated IP addresses.

- Supports sorting of the view with 2 different orders (up and down) and to reset it.

- Supports infinite scroll. Navigate millions of IP addresses with the right scrollbar.

- Supports a filter with 4 different subnet masks (255.255.255.255, 255.255.255.0, 255.255.0.0,255.0.0.0).

- Supports a filter with a country code.

- Supports searching for an ip address.

- Supports a sticky navigation bar.

- Asynchronous database query with JS.

- faster search with the free optimized IP2Location php library (winner of the IP2Location php library optimization contest 2016).

- NEW! Map of ip locations.

web+git: https://tetramatrix.github.io/doxmyipwindowstool/

comment 1y ago · link · parent

This package can perform a very fast Delaunay triangulation for a set of points in a plane. It uses the hilbert sort and the Bowyer-Watson algorithm.

The main class takes the coordinates a set of points and determines which form edges of a triangle whose points are on the same circumference. It can be used to find minimum spanning trees.

Another class can render the graph of triangles with the edges computed with the Delaunay triangulation.

web+git: https://tetramatrix.github.io/triangulation/

8.

Delaunay Triangulation(tetramatrix.github.io ↗)

1 points · by Gigamegs · 1y ago · 1 comment

comment 1y ago · link · parent

Algorithm for the open capacitated vehicle routing problem.

It takes the geographic coordinates of a depot and the locations clients with orders to be delivered by a fleet of trucks.

The class for solving the open capacitated vehicle routing problem.

It tries to minimize the total route cost by trying all possible combinations. The trucks are not required to return to the depot.

Website+git: https://tetramatrix.github.io/ocvrp/

10.

Open capacitated vehicle routing problem(tetramatrix.github.io ↗)

1 points · by Gigamegs · 1y ago · 1 comment

comment 1y ago · link · parent

A while back, I developed an early freely available implementation of the additively weighted Voronoi Diagram, but I haven’t shared it widely until now. So, better late than never—I’d like to present it here. It’s an algorithm for computing the additively weighted Voronoi Diagram, which extends the classic Voronoi diagram by assigning different influence weights to sites.

My approach is quite fast since it leverages triangulation. This makes it efficient for computational geometry, geospatial analysis, and clustering, where sites have varying importance. While my implementation isn’t the most robust, I believe it could still be useful or serve as a starting point for improvements. Would love to hear any feedback or see how others might build on it!

Website+git: https://tetramatrix.github.io/awvd/

12.

Weighted Voronoi Diagram(tetramatrix.github.io ↗)

3 points · by Gigamegs · 1y ago · 1 comment

comment 1y ago · link · parent

Major update: general Bug fixes, improved Stage & GFX, new BG GFX: Infinite Cosmic Space String v2, new GFX: Nebula, new GFX: procedurally generated Platform, 1x new weapon, faster rendering, Shader GFX.

Mirrors: 1) https://tetramatrix.itch.io/old-school-retro-mini-game-space... 2) https://tetramatrix.github.io/spaceship/

14.

Spaceship(tetramatrix.itch.io ↗)

4 points · by Gigamegs · 1y ago · 1 comment