Skip to content

Instantly share code, notes, and snippets.

View Spyder-0's full-sized avatar

Spyder Spyder-0

  • 127.0.0.1
View GitHub Profile
@Spyder-0
Spyder-0 / ChangeDirectory.py
Created March 23, 2023 07:24
Change Current Working Directory to Location of File.
import os
# Changes Directory to Where the File is Saved.
os.chdir(os.path.dirname(os.path.abspath(__file__)))
@Spyder-0
Spyder-0 / GridGame.py
Last active April 23, 2024 14:24
A Simple Array Game where a User Adds O's to X's
import time
# The Aim of this Code is to Help Anyone Understand how Arrays, User Input, Validation, and Custom Errors work.
# Take a Look Around and Try Understanding What Each Part Does.
# Vars
grid = [
["X", "X", "X", "X"],
["X", "X", "X", "X"],
["X", "X", "X", "X"],
@Spyder-0
Spyder-0 / .nanorc
Created October 23, 2022 09:29
My GNU nano Config Dotfile
## Configuration File for GNU nano Text Editor.
## System-Wide Config File Located at: /etc/nanorc
## This File Should be Located at ~/.config/nano/nanorc or ~/.nanorc
## Show Line Numbers on the Side.
set linenumbers
## Enable Word Wrapping.
set softwrap
@Spyder-0
Spyder-0 / BankSimulator.py
Created October 23, 2022 09:23
OOB Command-Input-Style Python Code in Python
# Bank Simulator
# A Flexible Command Input OOP
# Use this as an Example to make Your Command-Input-Style Code
import time
import sys
Money = 0
# List of Functions to Execute
class BankCommands():