Skip to content

Instantly share code, notes, and snippets.

View stungeye's full-sized avatar

Kyle Geske stungeye

View GitHub Profile
@stungeye
stungeye / board_layout.cpp
Last active November 2, 2026 18:56
Board Layout Helper with Static Methods
#include "board_layout.hpp"
#include "board_model.hpp"
#include <cassert> // assert() in cellRect()
namespace FrogToad {
Rectangle BoardLayout::board() {
// TODO by You.
return {}; // Replace with the rectangle covering all cells.
}
@stungeye
stungeye / crypto_news.json
Created December 18, 2017 04:42
News Site RSS Feeds
[
{
"url": "http://money.cnn.com",
"rss": "http://rss.cnn.com/rss/money_topstories.rss"
},
{
"url": "http://thehill.com",
"rss": "http://thehill.com/rss/syndicator/19110"
},
{
@stungeye
stungeye / README.md
Last active October 9, 2026 15:32
Unofficial UE 5.8.x Clean-install Metadata Finalization Workaround

UE 5.8.x Launcher stuck on Resume after a fresh installation

Unofficial, community-provided workaround. Not affiliated with or endorsed by Epic Games.

This PowerShell script addresses a narrow clean-install finalization failure: Unreal Engine 5.8.x has already downloaded, BuildPatch/BPS finished successfully, and the editor works when launched directly, but Epic Games Launcher displays Resume because it never committed the installation metadata.

It is based on one successful UE 5.8.3 recovery. The generalized version has not yet been tested on additional machines.

When to use

@stungeye
stungeye / ball.cpp
Created October 1, 2026 16:22
C++ Classes with Raylib
#include "ball.hpp"
#include <algorithm>
Ball::Ball(int x, int y, float radius, Color color, int speedX, int speedY)
: x{ x }, y{ y }, radius{ radius }, color{ color }, speedX{ speedX }, speedY{ speedY }
{ }
void Ball::show() {
DrawEllipse(x, y, radius, radius, color);
}
@stungeye
stungeye / ascii_forms.txt
Created September 16, 2026 00:00
Homage to Edward Zajec in collaboration with Matjaz Hmeljak.
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
----------- ------------------------------------- ---------------------------
----------- **----------------------------------- **-------------------------
----------- ***------- *-------------------- ***------------------------
----------- *****----- ***------------------ *****----------------------
----------- *****----- ****-----------------88888888888 88888888888******---------------------
----------- *****----- ******------
@stungeye
stungeye / index.html
Last active September 10, 2026 16:42
Semantic Zine Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>[Zine Name] — [Issue Info]</title>
</head>
<body>
<header>
@stungeye
stungeye / ManagedResource.hpp
Created November 13, 2025 18:40
C++ Managed Resources and a Resource Manager for Raylib Projects (Required CPP20+)
#pragma once
#include "raylib.h"
#include <string>
#include <type_traits>
// Forward declaration of ResourceManager for friending.
template <typename ResourceType>
class ResourceManager;
@stungeye
stungeye / blackAndWhiteP1File.ppm
Last active September 1, 2026 10:51
PPM Image File Examples
P1
# PBM Black & White Example
24 7
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0
0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
@stungeye
stungeye / random.md
Last active August 29, 2026 18:08
Random Number In Range

A simple way to generate a random number in C++ is by using the rand() function.

Here's an application that prints out 10 random numbers from a user specified range:

int randomNumber(int min, int max) {
    const int range = max - min + 1;
    return rand() % range + min;
}
@stungeye
stungeye / bright.ps
Last active August 14, 2026 05:05
Brightness Setter
$b = Get-CimInstance -Namespace root/WMI -ClassName WmiMonitorBrightness |
Where-Object Active
$m = Get-CimInstance -Namespace root/WMI -ClassName WmiMonitorBrightnessMethods |
Where-Object Active
$current = [int]$b.CurrentBrightness
if ($current -lt 100) {
$temporary = $current + 1