Skip to content

Instantly share code, notes, and snippets.

View ThomasJClark's full-sized avatar
:shipit:

Tom Clark ThomasJClark

:shipit:
  • CarGurus
  • Boston, Massachusetts
  • 20:18 (UTC -04:00)
View GitHub Profile
@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 {}
@ThomasJClark
ThomasJClark / build.gradle
Created January 27, 2015 00:50
WPILib grade build
plugins {
id "java"
id 'org.hidetake.ssh' version '0.4.5'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
def wpilibDir = System.env['HOME'] + '/wpilib/java/current'
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.Graphics2D;
import java.awt.geom.AffineTransform;
import edu.wpi.first.wpilibj.SpeedController;
public class MultiSpeedController implements SpeedController {
private SpeedController[] speedControllers;
private double speed;
public MultiSpeedController(SpeedController... speedControllers) {
this.speedControllers = speedControllers;
this.set(0.0);
}
@ThomasJClark
ThomasJClark / MultiSpeedController.h
Last active August 29, 2015 14:12
A speed controller for WPILib that controlls multiple motors
#include "SpeedController.h"
#include <vector>
/**
* A speed controller that controls an array of speed controllers with
* the same value
*
* @author Thomas Clark
*/
class MultiSpeedController: public SpeedController {