Skip to content

Instantly share code, notes, and snippets.

View Zacbt519's full-sized avatar

Zach Beatty-Taylor Zacbt519

View GitHub Profile
@Zacbt519
Zacbt519 / falsehoods-programming-time-list.md
Created July 29, 2024 15:27 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@Zacbt519
Zacbt519 / ServerPing.cs
Created August 30, 2020 02:00 — forked from csh/ServerPing.cs
Server ping written in C#, complete with coloured console output.
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using Newtonsoft.Json;
#if DEBUG
using System.Diagnostics;