Skip to content

Instantly share code, notes, and snippets.

View luke10x's full-sized avatar

Luke 10X luke10x

View GitHub Profile
@luke10x
luke10x / thread-users.md
Last active March 11, 2026 16:11
Summary of the YM2612 emulation thread

Below is the second document you requested. It is written to sit next to thread.md and focuses on the main personalities and their roles in the thread.

I emphasised who drove discoveries, who debated implementation details, and who mostly asked questions. This makes it easier later to cross-link discussions when building research notes.

thread-users.md

Thread: “New Documentation: An authoritative reference on the YM2612”

@luke10x
luke10x / gen-anim-from-glb-using-assimp.cpp
Last active July 4, 2025 02:52
gen-anim-from-glb-using-assimp.cpp
#ifndef STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#endif
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/fwd.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/quaternion.hpp>
@luke10x
luke10x / twitch.bot.mjs
Created June 16, 2025 01:55
Twitch bot
import tmi from 'tmi.js';
import { exec, execSync } from 'child_process';
import fs from 'fs';
import path from 'path';
// Define your Twitch credentials
const opts = {
identity: {
username: 'your_twitch_username', // same as your nick in Go
password: process.env.TWITCH_KEY // same OAuth token
@luke10x
luke10x / generate-commit-message.mjs
Last active June 14, 2025 21:29
Generate commit messages using Completion API
#!/bin/node
/*
How to use this shit?
1. Install llama.cpp
2. Download the completion DB from https://huggingface.co/
3. Start local server: `llama-server -m ~/Downloads/Qwen2.5-7B-Instruct-Q8_0.gguf`
4. Stage your diff changes and don't commit yet: `git add .`
5. Run this file `node generate-commit-message.mjs`
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
// Screen dimensions
const int SCREEN_WIDTH = 800;
const int SCREEN_HEIGHT = 600;
@luke10x
luke10x / README-hi.md
Last active June 20, 2023 00:25
Alternatives to Arquillian

About dependency choice:

Wildfly + Resteasy is the best stack for production and it is from Red Hat

  • krazo-resteasy - is an extension for Wildfly
  • krazo-cxf - is an extension for TomEE
  • krazo-jersey - is an extension for Glassfish and Payara

Even though RestEasy is used for prod, Jersey is easier to setup in test environment,

import org.json.JSONObject;
import javax.swing.*;
import java.awt.*;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
public class SwingJwtHelper {
public static void main(String[] args) {
SwingUtilities.invokeLater(SwingAppUI::createAndShowGUI);
@luke10x
luke10x / Ansicolor.md
Last active November 17, 2022 23:30 — forked from raghav4/Ansicolor.md
Color codes for console using Ansi
=======================================================================================================
=======================================================================================================
All-about-reactive-programming-java
=======================================================================================================
=======================================================================================================
@luke10x
luke10x / All-About-java-JVM
Created August 24, 2022 09:45
All about JVM
=======================================================================================================
=======================================================================================================
All about java jvm
=======================================================================================================
=======================================================================================================