Skip to content

Instantly share code, notes, and snippets.

View ThomasJClark's full-sized avatar
:shipit:

Tom Clark ThomasJClark

:shipit:
  • CarGurus
  • Boston, Massachusetts
  • 04:47 (UTC -05:00)
View GitHub Profile
@ThomasJClark
ThomasJClark / CMakeLists.txt
Last active August 31, 2025 14:45
c0000unlimiter
cmake_minimum_required(VERSION 3.28.1)
set(CMAKE_GENERATOR_PLATFORM x64)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
project(c0000unlimiter VERSION "1.0.0" LANGUAGES CXX)
include(FetchContent)
FetchContent_Declare(pattern16
@ThomasJClark
ThomasJClark / CMakeLists.txt
Last active December 14, 2025 01:51
ELDEN RING Nightreign HKS hot reloader
cmake_minimum_required(VERSION 3.28.1)
set(CMAKE_GENERATOR_PLATFORM x64)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
project(nrhkshotloader VERSION "1.0.0" LANGUAGES CXX)
include(FetchContent)
@ThomasJClark
ThomasJClark / CMakeLists.txt
Created March 8, 2025 21:49
Elden Ring DLL example
cmake_minimum_required(VERSION 3.28.1)
set(CMAKE_GENERATOR_PLATFORM x64)
project(bingus
VERSION "0.0.1"
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
@ThomasJClark
ThomasJClark / CMakeLists.txt
Last active October 18, 2024 22:57
regbinmeme.dll
cmake_minimum_required(VERSION 3.28.1)
set(CMAKE_GENERATOR_PLATFORM x64)
project(regbinmeme
VERSION "0.0.1"
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
@ThomasJClark
ThomasJClark / powerroll.js
Last active September 22, 2024 18:01
Macro for running MCDM's Draw Steel RPG in Foundry Virtual Tabletop
new Dialog({
title: "Power Roll",
content: `
<form id="form" class="flex-form" style="padding-bottom:8px">
<label>
Modifier <input type="number" name="mod" value="0"/>
</label>
<label>
<input type="radio" name="edge" value="edge2"/> <i class="fas fa-chevrons-up"></i> Double edge
</label>
@ThomasJClark
ThomasJClark / disablertx.lua
Last active April 27, 2024 21:40
An HKS snippet to disable ray tracing in ELDEN RING mods. Requires Scripts-Data-Exposer-FS.dll (https://discord.com/channels/529802828278005773/529900741998149643/1217831611274498138)
local WritePointerChain = 10000
local GAME_BASE = 0
local SIGNED_INT = 5
local CS_WINDOW = 0x4502490
function Update()
-- Copy this into the Update() function in action\script\c0000.hks to
-- disable ray tracin while your mod is loaded
act(WritePointerChain, GAME_BASE, SIGNED_INT, 0, CS_WINDOW, 0x120)
package edu.wpi.first.smartdashboard.gui.elements;
import edu.wpi.first.smartdashboard.gui.StaticWidget;
import edu.wpi.first.smartdashboard.properties.*;
import edu.wpi.first.smartdashboard.robot.Robot;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
package edu.wpi.first.smartdashboard.gui.elements;
import edu.wpi.first.smartdashboard.gui.DashboardPrefs;
import edu.wpi.first.smartdashboard.gui.StaticWidget;
import edu.wpi.first.smartdashboard.properties.IntegerProperty;
import edu.wpi.first.smartdashboard.properties.Property;
import edu.wpi.first.smartdashboard.properties.StringProperty;
import java.awt.Color;
import java.awt.Dimension;
@ThomasJClark
ThomasJClark / frcspy2csv.go
Created February 22, 2015 17:11
Convert data from the FRC-Spy feed to a CSV file
package main
import (
"fmt"
"log"
"os"
)
func main() {
if len(os.Args) != 2 {
@ThomasJClark
ThomasJClark / Angle.java
Created January 30, 2015 02:26
Units and Measures
package edu.wpi.first.wpilibj.measures.dimensions;
public class Angle implements Dimension {}