Skip to content

Instantly share code, notes, and snippets.

View nimaid's full-sized avatar

Ella Jameson nimaid

  • Tucson, AZ
View GitHub Profile
@nimaid
nimaid / maze.lua
Created August 23, 2023 06:18
A maze generator for ComputerCraft (Direct Version)
-- pastebin get R8SRcS2S maze.lua
-- A recursive backtracker maze generator for my Create mechanical maze
-- All function parameters are 0-indexed, Because I hate LUA.
-- To install the slave PC software:
--[[
pastebin get 5fGx23UZ rx.lua
edit rx.lua
pastebin get GWSF49zj startup.lua
@nimaid
nimaid / d_latch.rlc
Created August 22, 2023 01:42
Minecraft "Redstone Pen" RLC Code - Transparent D Latch
# A simple transparent D latch
#
# U is enable
# R is data in
# Y is data out
Y=IF(U, R, Y)
@nimaid
nimaid / shift_reg.rlc
Created August 22, 2023 01:41
Minecraft "Redstone Pen" RLC Code - Shift Register
# A simple shift register
#
# U is clock
# D is data in
# R, B, Y, G is out (in order)
G=IF(U.RE, Y, G)
Y=IF(U.RE, B, Y)
B=IF(U.RE, R, B)
R=IF(U.RE, D, R)
@nimaid
nimaid / maze_sr.lua
Last active August 23, 2023 00:26
A maze generator for ComputerCraft (Shift Register Version)
-- pastebin get wz9tPFbS maze.lua
-- A recursive backtracker maze generator for my shift regiser based mechanical maze
-- All function parameters are 0-indexed, Because I hate LUA.
-- Shift register connections
local clk = "left"
local data = "back"
local latch = "right"
@nimaid
nimaid / mount_win.bash
Last active June 23, 2023 04:23
A simple linux boot script to mount a Windows 10 drive correctly.
#!/bin/bash
#############################################
# Automatically fixes & mounts a Windows 10 #
# NTFS partition to a folder in RW mode. #
#############################################
# ~~~~~~~~ Variables ~~~~~~~~
@nimaid
nimaid / simplify_and_darken.bat
Last active June 23, 2023 21:11
A batch script to strip down a Windows 10 Sandbox instance on boot to be less visually annoying
REM Run this at at startup
REM Suggested way to use:
REM set ORIGDIR=%CD%
REM pushd %~dp0
REM set SCRIPTDIR=%CD%
REM popd
REM
REM start "Simplify and Darken Desktop" "%SCRIPTDIR%\resources\simplify_and_darken.bat"
@echo off
@nimaid
nimaid / bad_apple_movement.py
Created February 20, 2023 00:05
Glitchy rainbow movement effect for video (https://youtu.be/iuLY_cLhiZU)
import os
import urllib.request
from enum import Enum
import hashlib
import cv2
import numpy as np
bad_apple_video = "bad_apple.mp4"
# The current best source for the original video from NicoNico
@nimaid
nimaid / video.py
Created February 19, 2023 08:15 — forked from tommy-mor/video.py
not good code stay away
from moviepy.editor import *
import numpy as np
clip = VideoFileClip("hams.mkv")
import sounddevice as sd
import soundfile as sf
from queue import Queue
from collections import OrderedDict
import pprint
pp = pprint.PrettyPrinter(indent=4)
print('started')
@nimaid
nimaid / Neopets_NFT_Whitepaper.md
Last active February 14, 2023 11:04
A fake whitepaper for a Neopets NFT platform in the style of CryptoZoo.

Neopets

Neopets Official Whitepaper

[ An image of a vibrant and colorful pet shop is shown. ]

$NEO Contract Address: 0x1c232d1b8f208bF7a87a1Ce309901F9F22deaD6B

Introduction

@nimaid
nimaid / CryptoZoo_Whitepaper.md
Created February 14, 2023 09:01
A markdown, text-only version of the CryptoZoo whitepaper.

CryptoZoo

CryptoZoo Official Whitepaper

[ An image of a shining golden egg on a black background with a circular, golden border is shown. ]

$ZOO Contract Address: 0x7fFC1243232da3Ac001994208E2002816b57c669

Introduction