Skip to content

Instantly share code, notes, and snippets.

View Blizzardo1's full-sized avatar
🤣
Have you tried turning it off and on again?

Adonis Deliannis Blizzardo1

🤣
Have you tried turning it off and on again?
View GitHub Profile
using System;
class Program
{
static void Main()
{
var b = new Base();
b.DoSomething();
// The answer is 42!
@csh
csh / ServerPing.cs
Last active September 15, 2024 18:55
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;
@nberardi
nberardi / BigDecimal.cs
Created May 12, 2012 15:17
BigDecimal type in .NET
using System;
using System.Linq;
namespace System.Numerics
{
public struct BigDecimal : IConvertible, IFormattable, IComparable, IComparable<BigDecimal>, IEquatable<BigDecimal>
{
public static readonly BigDecimal MinusOne = new BigDecimal(BigInteger.MinusOne, 0);
public static readonly BigDecimal Zero = new BigDecimal(BigInteger.Zero, 0);
public static readonly BigDecimal One = new BigDecimal(BigInteger.One, 0);