Skip to content

Instantly share code, notes, and snippets.

View ocirne23's full-sized avatar

Enrico van Oosten ocirne23

  • Frankfurt am Main, Germany
View GitHub Profile
ship = SSTO Hauler Fuel
version = 1.3.0
description =
type = SPH
size = 24.7084923,9.85134506,32.958931
PART
{
part = mk3Cockpit.Shuttle_4288528032
partName = Part
pos = -7.04839373,6.83048439,-2.38453865
@ocirne23
ocirne23 / AutoHotkey.ahk
Last active April 19, 2022 09:29
Dark Souls 2 Input fix Autohotkey
#SingleInstance Force
#MaxHotkeysPerInterval 99999
#IfWinActive ahk_class DarkSouls2
; AutoHotkey script to remove input lag from DarkSouls2 PC, and adds
; hotkeys for Guard break / Jump Attack
;
; Current settings (some can be easily changed)
; LMB / RMB = normal attacks
; Shift + LMB / RMB = strong attacks
private static <T> T createNewInstance(Class<T> type) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
Constructor<?>[] constructors = type.getDeclaredConstructors();
// if its an interface or abstract class
if (constructors.length == 0)
return null;
// if trying to create a generic
if (type == Class.class)
return null;