Skip to content

Instantly share code, notes, and snippets.

View PhantomOffKanagawa's full-sized avatar

Harrison Surma PhantomOffKanagawa

View GitHub Profile
@PhantomOffKanagawa
PhantomOffKanagawa / gym_schedule.pl
Created November 14, 2024 20:23
Prolog Gym Schedule Generator
% Define the week
day(sunday).
day(monday).
day(tuesday).
day(wednesday).
day(thursday).
day(friday).
day(saturday).
% Define the workouts that must be separated
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active June 2, 2025 16:57
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@fonic
fonic / python_argparse_custom_help_usage.py
Last active April 20, 2025 08:24
Python module extending class 'argparse.ArgumentParser' to support custom help/usage output (incl. example/demo)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------
# -
# Python Module Argument Parser -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 06/20/19 - 04/03/24 -
# -