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 / 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