This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for %%x in ( | |
"C:\Games\Switch\SwitchAutoBackup\JKSV\" | |
"C:\Games\Switch\SwitchAutoBackup\Album" | |
"C:\Games\Switch\SwitchAutoBackup\forwarders" | |
"C:\Games\Switch\SwitchAutoBackup\retroarch\roms" | |
"C:\Games\Switch\SwitchAutoBackup\retroarch\savefiles" | |
"C:\Games\Switch\SwitchAutoBackup\retroarch\system" | |
"C:\Games\Switch\SwitchAutoBackup\openrct2\home" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DisplayHelpMsg() | |
Joy14:: ; Share button = F8 (Ryujinx screenshot) | |
TrayTip Screenshot Captured, A screenshot has been saved to the Ryujinx screenshots folder. | |
Send {F8 down} | |
KeyWait Joy2 | |
Send {F8 up} | |
return | |
Joy13:: ; Home button = Alt + 3 (Shadowplay) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SystemCursor("Init") | |
GuiShown = false | |
DisplayHelpMsg() | |
#N:: ; Toggle blackout window = Win + N | |
WinGetTitle, title, A | |
If GuiShown = false | |
{ | |
Gui, Color, black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Provides tools to format time-based objects into strings.""" | |
import datetime | |
from typing import Union | |
def split_seconds(seconds_in: Union[int, float]) -> dict[str, Union[int, float]]: | |
"""Split seconds into days, hours, minutes, and seconds, and return a dictionary with those values. | |
:param int seconds_in: The total number of seconds to split up. | |
:return: A dictionary with the split weeks ['w'], days ['d'], hours ['h'], minutes ['m'], and seconds ['s']. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass | |
from typing import Any | |
class ValidationError(ValueError): | |
def __init__(self, message: str = None): | |
self.message = message | |
super().__init__(message) | |
@dataclass | |
class Validate: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
class TimeString: | |
@staticmethod | |
def split_seconds(seconds_in): | |
days, remainder = divmod(seconds_in, (60 ** 2) * 24) | |
hours, remainder = divmod(remainder, 60 ** 2) | |
minutes, seconds = divmod(remainder, 60) | |
return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple transparent D latch | |
# | |
# U is enable | |
# R is data in | |
# Y is data out | |
Y=IF(U, R, Y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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" |
NewerOlder