Skip to content

Instantly share code, notes, and snippets.

@RickStrahl
RickStrahl / ColorConsole.cs
Last active December 14, 2025 19:50
Color Console - a simple class to add color to .NET Console commands more easily.
using System;
using System.Text;
using System.Text.RegularExpressions;
namespace MainColorConsole
{
class Program
{
static void Main(string[] args)
{
@Skibisky
Skibisky / MessagePasser.cs
Created February 27, 2019 06:23
Working example for sending a string between C# handles (Controls/Forms) using WM_COPYDATA.
/* ===================
* WM_COPYDATA example
* ===================
*
* Working example for sending a string between C# handles (Controls/Forms) using WM_COPYDATA.
*
* TODO:
* -----
* * Add more info
* * Make generic struct copying work
@jrolstad
jrolstad / gist:5ca7d78dbfe182d7c1be
Last active December 16, 2023 06:55
List all NodaTime Timezones
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NodaTime.TimeZones;
using NUnit.Framework;
namespace what_time_is_it
{