Skip to content

Instantly share code, notes, and snippets.

View ShayBox's full-sized avatar
🐧
Noot Noot

Shayne Hartford ShayBox

🐧
Noot Noot
View GitHub Profile
@nikhiljha
nikhiljha / README.md
Last active May 15, 2024 04:43
Apple Silicon (M1) + MultiMC + Minecraft 1.18 + Native LWJGL

Edit (2024): You no longer need to follow this guide! Just use PrismLauncher.

.

.

.

.

@ShayBox
ShayBox / CubemapExtractor.cs
Created June 26, 2023 08:59
Unity editor script that extracts 6 sided images from a cubemap
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Linq;
public class CubemapExtractor : Editor
{
private static readonly CubemapFace[] CubemapFaces = new CubemapFace[]
{
CubemapFace.PositiveX, // Right
@ShayBox
ShayBox / main.py
Created July 6, 2023 04:15
Temporary low voltage detection using standard deviation for RPI Pico W & CircuitPython
import analogio
import board
import math
import time
voltage = analogio.AnalogIn(board.VOLTAGE_MONITOR)
voltage_conversion_factor = 3 * 3.3 / 65535
def calculate_mean(data):
return sum(data) / len(data)
@ShayBox
ShayBox / main.rs
Created February 13, 2024 03:27
Infinite Craft automated with headless_chrome
use std::{collections::HashSet, time::Duration};
use anyhow::Result;
use derive_config::{json::Value, DeriveJsonConfig, DeriveTomlConfig};
use headless_chrome::{browser::default_executable, Browser, LaunchOptions};
use serde::{Deserialize, Serialize};
#[derive(Debug, Default, DeriveJsonConfig, Deserialize, Serialize)]
struct Combinations(HashSet<(String, String)>);