Skip to content

Instantly share code, notes, and snippets.

View Kristonitas's full-sized avatar

Kristupas Stumbrys Kristonitas

View GitHub Profile
@Kristonitas
Kristonitas / searchConsecutive.ts
Created October 20, 2023 07:20
Search an input string for longest substring that contains a limited set of unique characters
// Stores the result match, can be used to store best current match
type Match = {
// the chars that are in the longest consecutive sequence (char[])
chars: string;
// start index in original sequence (size_t)
startIndex: number;
// length of the matching sequence (size_t)
length: number;
};
@Kristonitas
Kristonitas / hf2.py
Created January 11, 2023 14:44
hf2 heightmap parser for python
# Copyright 2023 Kristupas Stumbrys
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
# See https://www.gnu.org/licenses/gpl-3.0.en.html
# spec
@Kristonitas
Kristonitas / Backend.md
Last active January 4, 2020 09:25
The journey of learning backend development

Keybase proof

I hereby claim:

  • I am kristonitas on github.
  • I am kristupas (https://keybase.io/kristupas) on keybase.
  • I have a public key whose fingerprint is C93B 53D3 B594 6406 A307 6EF0 06DE 83CA 71EB FB46

To claim this, I am signing this object: