Skip to content

Instantly share code, notes, and snippets.

View do0m-nametaken's full-sized avatar

Do0m do0m-nametaken

View GitHub Profile
@do0m-nametaken
do0m-nametaken / word_memory.bat
Created August 23, 2024 04:33
Word memory game (same game seen in humanbenchmark.com) in Batch made in Nov. 6, 2021
:beginning
@echo off
setlocal EnableDelayedExpansion
if not exist wordlist.txt goto:nolist
if exist rememberedwords.temp if exist gameinfo.temp goto:foundgame
:menu
cls
echo Sean's Word memory game
echo [1] Normal game (3 lives)
@do0m-nametaken
do0m-nametaken / midi_autopitchevents.py
Created August 23, 2024 04:20
Quick n dirty Python script for creating pitch wheel events to channels in a midi file
# Quick n dirty Python script for creating pitch wheel events to channels in a midi file
# Made approx. in late 2023
import mido
import easing_functions
import math
def oscillate_function(waveform, t, amplitude, period, phase_shift=0, vertical_shift=0):
t += phase_shift
functions = {
@do0m-nametaken
do0m-nametaken / alarm.bat
Last active January 29, 2021 13:31
BATCH Alarm - Time alarm and timer in Batch
:: Batch ALARM by Sean
::
:: Update 24/01/2021:
:: ├─Fixed the time variable having a space for the hour value
:: └─Added a choice to exit and retry when in alarm
::
:: Update 29/01/2021:
:: ├─Made detecting input make use of the FOR command instead of extracting parts of a variable
:: ├─You can now set your custom input delimiter below
:: ├─You can now add parameters for settings
@do0m-nametaken
do0m-nametaken / rps.bat
Created January 28, 2021 06:54
Batch RPS ASCII - Rock Paper Scissors in Batch
:: Batch RPS ASCII by Sean
:: RPS ASCII art from https://gist.github.com/wynand1004/b5c521ea8392e9c6bfe101b025c39abe by Christian Thompson or "wynand1004"
@echo off
title Rock Paper Scissors
set notrandomperm=0
set "ping=%systemroot%\system32\ping.exe"
set "choice=%systemroot%\system32\choice.exe"
if not exist "%ping%" set _nocmd=ping & goto:nosup
if not exist "%choice%" set _nocmd=choice & goto:nosup