Skip to content

Instantly share code, notes, and snippets.

View autodidacticon's full-sized avatar

Richard Moorhead autodidacticon

View GitHub Profile
// nt_aimassist.mod.gml — per-player aim-assist for co-op.
//
// NT already implements aim-assist (Player/Step_0.gml:330) and the underlying
// KeyCont.aimassist[index] storage is per-player. The vanilla input handler
// just stamps the global opt_assist into every slot each frame
// (InputHandling.gml:226). This mod overrides that array per-player based on
// each player's input device, so the gamepad player gets assist while the
// KB/M player has clean mouse aim in the same co-op session.
//
// Behavior: ON for gamepad players, OFF for keyboard / mouse players.
@autodidacticon
autodidacticon / nt_recorder.mod.gml
Last active April 8, 2026 02:22
NTT Recording Mod — Record human Nuclear Throne gameplay for RL training
// nt_recorder.mod.gml — NTT mod that records human gameplay demonstrations
// for RL training. Outputs JSON-lines files compatible with the ntt_log_converter.
//
// Install: place in Nuclear Throne Together's mods folder and /load nt_recorder
#define init
// --- Episode & file tracking ---
global.rec_session_id = string(current_time) + "_" + string(irandom(9999)); // unique per launch
global.rec_episode = 0;
global.rec_frame = 0;
@autodidacticon
autodidacticon / results
Created September 28, 2023 14:11
scala.collection.parallel.mutable.ParMap vs java.util.concurrent.ConcurrentHashMap
scala> :load test.sc
val args: Array[String] = Array()
Loading test.sc...
import java.lang.System.nanoTime
import java.util.concurrent.ConcurrentHashMap
import scala.collection.mutable
import scala.collection.parallel.mutable.{ParArray, ParHashMap}
import scala.jdk.CollectionConverters.ConcurrentMapHasAsScala
val javaMap: scala.collection.concurrent.Map[Long,Long] = Map()
val scalaMap: scala.collection.parallel.mutable.ParHashMap[Long,Long] = ParHashMap()
@autodidacticon
autodidacticon / alchemy-nft-metadata.json
Created February 15, 2022 19:14
alchemy-getNFTs-with-metadata
{
"ownedNfts": [
{
"contract": {
"address": "0x0beed7099af7514ccedf642cfea435731176fb02"
},
"id": {
"tokenId": "0x000000000000000000000000000000000000000000000000000000000000001c",
"tokenMetadata": {
"tokenType": "ERC721"
@autodidacticon
autodidacticon / cmc-swagger.yml
Last active May 10, 2024 13:47
cmc-swagger
openapi: '3.0.3'
info:
title: CoinMarketCap Cryptocurrency API Documentation
version: 1.26.0
description: "# Introduction\nThe CoinMarketCap API is a suite of high-performance RESTful JSON endpoints that are specifically designed to meet the mission-critical demands of application developers, data scientists, and enterprise business platforms.\n\nThis API reference includes all technical documentation developers need to integrate third-party applications and platforms. Additional answers to common questions can be found in the [CoinMarketCap API FAQ](https://coinmarketcap.com/api/faq).\n\n# Quick Start Guide\n\nFor developers eager to hit the ground running with the CoinMarketCap API here are a few quick steps to make your first call with the API.\n\n1. **Sign up for a free Developer Portal account.** You can sign up at [pro.coinmarketcap.com](https://pro.coinmarketcap.com) - This is our live production environment with the latest market data. Select the free `Basic` plan if it meets your needs or upgra
@autodidacticon
autodidacticon / mac.sh
Last active April 20, 2025 03:20
mac.sh
#!/bin/bash
# macos provisioning script
# prerequisites: hostname folder must exist as host-$HOSTNAME
# usage: mac.sh hostname
HOSTNAME=$1
sudo hostname $HOSTNAME
scutil --set HostName $HOSTNAME
cd ~

Keybase proof

I hereby claim:

  • I am autodidacticon on github.
  • I am richardmoorhead (https://keybase.io/richardmoorhead) on keybase.
  • I have a public key ASAJEZBGPyDeiHsgXnfCPL-9yeSqa_XqTP8XHjorep2L_Ao

To claim this, I am signing this object:

@autodidacticon
autodidacticon / helm.yaml
Created February 5, 2019 04:25
helm-svc-acct
apiVersion: v1
kind: ServiceAccount
metadata:
name: helm
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: helm

Keybase proof

I hereby claim:

  • I am autodidacticon on github.
  • I am richardmoorhead (https://keybase.io/richardmoorhead) on keybase.
  • I have a public key ASBJOvopCcKLtMeWPgL-dtOGH98okjFBPv8KIj8Aytj0Dwo

To claim this, I am signing this object:

@autodidacticon
autodidacticon / atlas_setup.sh
Last active March 6, 2018 18:06
atlas_setup.sh
#!/bin/bash
#install Xcode CLT
xcode-select --install
# install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install 'brew bundle'
brew tap homebrew/bundle