Skip to content
View serg06's full-sized avatar

Highlights

  • Pro
Block or Report

Block or report serg06

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. mc2 mc2 Public

    Minecraft but faster - C++ & OpenGL

    C++ 8 1

  2. rust-full-websocket-example rust-full-websocket-example Public

    Rust Websocket Server Example w/ De/Serialization, Async/Await, Arg Parsing and Logging.

    Rust 4

  3. [TypeScript] Iterating over enums [TypeScript] Iterating over enums
    1
    function isStringEnum<T extends Record<string, string | number>>(t: T): boolean {
    2
        return typeof Object.values(t).pop() === 'string';
    3
    }
    4
    
    
    5
    export function enumKeys<T extends Record<string, string | number>>(t: T): (keyof T)[] {
  4. [TypeScript] Types for JavaScript's ... [TypeScript] Types for JavaScript's replacerFunction in String.prototype.replaceAll
    1
    export interface ReplacerArgs {
    2
        match: string; // the matched substring
    3
        groups: string[]; // captured groups
    4
        offset: number; // offset of match
    5
        string: string; // entire string
  5. [JS] Load scripts dynamically [JS] Load scripts dynamically
    1
    // Function to load a JS file
    2
    async function loadScript(url) {
    3
        return await new Promise((resolve, reject) => {
    4
            const script = document.createElement('script');
    5
            script.src = url;
  6. [C++] Short IntervalMap data structu... [C++] Short IntervalMap data structure implementation
    1
    /*
    2
     * NOTE 1: This works on VC++ but might need a little extra syntax to work on GCC.
    3
     * NOTE 2: It breaks when calling set_interval on the minimum key (std::numeric_limits<K>::lowest()) and maybe on the maximum key too.
    4
     *
    5
     * OPERATIONS: