Skip to content

Instantly share code, notes, and snippets.

@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active September 21, 2024 17:58
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@mariodivece
mariodivece / mad-scanlines-crt.glsl
Last active September 11, 2024 07:19
CRT Scanline Effect for Dolphin Emulator
void main()
{
float currentMillis = GetTime() / float(1000.0);
float2 coords = GetCoordinates();
float lineCount = GetWindowResolution().y / 2.0;
// scanlines
int lineIndex = int( ( coords.y + currentMillis * 0.5 ) * lineCount );
#ifdef API_OPENGL
float lineIntensity = mod(float(lineIndex), 2);
@mariodivece
mariodivece / scanlines.glsl
Last active August 17, 2024 15:29
A simple, configurable GLSL scanline effect shader for Dolphin
/*
[configuration]
[OptionRangeFloat]
GUIName = Blur Area
OptionName = BLUR_SIZE
MinValue = 0.0
MaxValue = 10.0
StepAmount = 0.1
DefaultValue = 1.6
@oxguy3
oxguy3 / DRM-free video.md
Last active September 15, 2024 00:47
DRM-free media available for purchase

DRM-free media available for purchase

I think DRM on video content is just awful, but throwing a temper tantrum about it isn't gonna do me any good. So instead of whining about video I can't get DRM-free, I'm gonna celebrate the media I can get without DRM.

DRM-free marketplaces