Black and white .NET Aspire console? Worry no more. Use this :
applyThemeToRedirectedOutput: true
Full code example, taken from ADG's Logging helper method :
Black and white .NET Aspire console? Worry no more. Use this :
applyThemeToRedirectedOutput: true
Full code example, taken from ADG's Logging helper method :
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.AI; | |
using OpenCvSharp; | |
using AForge.Video.DirectShow; | |
namespace ADG.Playground.Vision | |
{ | |
internal class VisionResponse | |
{ |
using System.Text; | |
namespace ADG.ConsoleSpin; | |
public static class ConsoleSpinner | |
{ | |
private static int counter; | |
private static readonly string[] SpinnerChars = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]; // Braille characters that work reliably |
import matplotlib.pyplot as plt | |
import numpy as np | |
def time_to_hours(time_str, start_hour=None): | |
""" | |
Convert a time string "HH:MM" to a float representing hours. | |
If the time is "00:00" and start_hour is provided and greater than 0, | |
assume that it represents midnight at the end of the day (i.e., 24:00). | |
""" | |
h, m = map(int, time_str.split(":")) |
using System.Diagnostics; | |
using System.Text; | |
using System.Text.Json; | |
using System.Xml.Linq; | |
using AGX.Common.Logging.Serilog; | |
using Serilog; | |
namespace AGX.Common.Publishing | |
{ | |
internal class Program |
using System.Collections.Concurrent; | |
using System.Text.RegularExpressions; | |
namespace ADG.Playground._2; | |
internal static class Program | |
{ | |
private static readonly HttpClient Client = new() { Timeout = TimeSpan.FromMilliseconds(500) }; | |
private static readonly ConcurrentQueue<string> Results = new(); | |
private static readonly SemaphoreSlim Semaphore = new(50); // Limits concurrent requests |
GUIStyle myStyle = new GUIStyle(EditorStyles.textField) | |
{ | |
wordWrap = true | |
}; | |
chatRow.Text = EditorGUILayout.TextArea(chatRow.Text, myStyle, GUILayout.Height(100)); |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using UnityEditor; | |
using UnityEngine; | |
using Debug = UnityEngine.Debug; | |
namespace ADG.Scripts.Editor |
using FluentResults; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.Extensions.Options; | |
using OBSStudioClient; | |
using OBSStudioClient.Enums; | |
using Polly; | |
namespace ADG.Recording.OBS | |
{ | |
public class ObsServiceOptions |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
namespace Wikwemot_AR.Modules.Input.Runtime.Scripts | |
{ | |
// See : https://discussions.unity.com/t/ispointerovergameobject-not-working-with-touch-input/155469/3 | |
public static class IsPointerOverGameObjectUtils | |
{ | |
/// <returns>true if mouse or first touch is over any event system object ( usually gui elements )</returns> | |
public static bool IsPointerOverGameObject() |