Skip to content

Instantly share code, notes, and snippets.

View exsersewo's full-sized avatar

exsersewo

View GitHub Profile
@exsersewo
exsersewo / DiscordHostedClient.cs
Created February 24, 2022 23:50
Light-ish weight M.A.H/M.A.L/M.A.C Discord host - Gist is MIT
using Discord;
using Discord.WebSocket;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System.Threading;
using System.Threading.Tasks;
using IConfiguration = Microsoft.Extensions.Configuration.IConfiguration;
public class DiscordHostedClient : IHostedService
@exsersewo
exsersewo / colourhandling.cpp
Created October 4, 2017 20:05
SDL_Colour to Uint32 and Uint32 to SDL_Colour
Uint32 ColourToUint(int R, int G, int B)
{
return (Uint32)((R << 16) + (G << 8) + (B << 0));
}
SDL_Colour UintToColour(Uint32 colour)
{
SDL_Colour tempcol;
tempcol.a = 255;
tempcol.r = (colour >> 16) & 0xFF;

Keybase proof

I hereby claim:

  • I am exsersewo on github.
  • I am exsersewo (https://keybase.io/exsersewo) on keybase.
  • I have a public key ASBp9G0CLmsTMtYLO0rXHH0RBbvPFD_usST0O80oZOqkYQo

To claim this, I am signing this object: