Skip to content

Instantly share code, notes, and snippets.

View codecat's full-sized avatar
🌸
Meow

Melissa codecat

🌸
Meow
View GitHub Profile
@codecat
codecat / Defqon2023.md
Last active February 12, 2024 09:23
Defqon.1 2023 Livestream Timetable

Schedule

This is the full timetable for the Defqon 2023 livestreams. I will keep it updated the best I can.

RED

Watch live: https://www.q-dance.com/network/live/149170455

Day Time (CEST) Set
Friday 13:00 The Opening Ceremony with Phuture Noize
Friday 14:00 Darren Styles
@codecat
codecat / FriendlyPixelFormat.md
Last active May 24, 2023 19:15
Friendly Pixel Format for Twitch

Friendly Pixel Format

On my Twitch stream, you can type commands in chat to run custom lightshow code.

Community emulator

Community member yugecin26 has made a fairly accurate emulator for the light code described below. You can use it to test light code before putting it in chat!

Strip specifications

I have 2 LED strips with 180 RGB pixels each. They always run its animations at 30 FPS.

Changelog

@codecat
codecat / gamelogin.go
Created June 6, 2022 15:45
Converting between Nadeo account ID and encoded game logins
package main
import (
"encoding/base64"
"encoding/hex"
"regexp"
"strings"
)
func isUUID(id string) bool {
@codecat
codecat / TeensyLed.c
Created July 3, 2021 14:26
Teensy program for my LED strips.
/*
Required Connections
--------------------
pin 2: LED Strip #1 OctoWS2811 drives 8 LED Strips.
pin 14: LED strip #2 All 8 are the same length.
pin 7: LED strip #3
pin 8: LED strip #4 A 100 ohm resistor should used
pin 6: LED strip #5 between each Teensy pin and the
pin 20: LED strip #6 wire to the LED strip, to minimize
pin 21: LED strip #7 high frequency ringining & noise.
@codecat
codecat / BeamNG.Hooks.md
Last active December 15, 2023 16:00
BeamNG Extension hooks

BeamNG Extension hooks

These are called in extensions. For example, the following module has some hooks:

local M = {}

M.onBeamNGTrigger = function(data)
	-- ...
end
@codecat
codecat / Webservices.md
Last active November 14, 2022 12:38
Trackmania Webservices

New documentation

Note: There is a newly maintained community documentation site for all of Trackmania's APIs!

Visit it at: https://webservices.openplanet.dev/

Authentication setup

This guide will explain how to authenticate with Nadeo's API. There are 2 methods of doing so, one is via a Ubisoft account, and one is via a dedicated server account. Note that the dedicated server account way is easier but imposes some limitations on what you can access with the API, but it could be enough.

Refer to my Nadeo Go package for a complete example.

@codecat
codecat / use_wxwidgets.lua
Created February 16, 2020 16:45
wxWidgets Premake5
-- NOTE:
-- This script was taken from: https://wiki.wxwidgets.org/Premake4
-- And modified by Miss to fix some issues and work with Premake5
--
-- Use like:
-- flags "WinMain"
-- configuration "Debug"
-- wx_config { Root=WX_DIR, Debug="yes", Static="yes", Unicode="yes", Version="3.1", Libs="core,adv,gl,aui,propgrid" }
-- configuration "Release"
-- wx_config { Root=WX_DIR, Debug="np", Static="yes", Unicode="yes", Version="3.1", Libs="core,adv,gl,aui,propgrid" }
@codecat
codecat / genie_zstd.lua
Created July 10, 2018 10:04
GENie/premake build for Facebook's zstd library
-- This GENie file copies the behavior of the Makefile in the lib folder.
-- Basic usage: project_zstd(ZSTD_DIR)
function project_zstd(dir, compression, decompression, deprecated, dictbuilder, legacy)
if compression == nil then compression = true end
if decompression == nil then decompression = true end
if deprecated == nil then deprecated = false end
if dictbuilder == nil then dictbuilder = false end
if legacy == nil then legacy = 0 end
@codecat
codecat / Schedule.md
Last active June 20, 2018 19:00
Defqon 2018 Livestream Schedule

Defqon 1 2018 Livestream Schedule

Available streams:

  • Q-Dance Live (Video & Audio) - Multiple stages. There's currently no schedule available.
  • Red Stage (Video & Audio) - Member only. Sign up for free on Q-Dance.com.
  • Blue Stage (Video & Audio) - Member only. Sign up for free on Q-Dance.com.
  • Black Stage (Video & Audio) - Member only. Sign up for free on Q-Dance.com.
  • Q-Dance Radio (Audio only) - Multiple stages. There's currently no schedule available.

/r/hardstyle Discord chat: https://discord.gg/hardstyle

@codecat
codecat / BugReproduceSteps.md
Last active May 11, 2018 16:28
MSVC 2017 optimization bug

This is reproduced on Visual Studio 2017 15.7.1.

  1. Download Angelscript from here: http://www.angelcode.com/angelscript/sdk/files/angelscript_2.32.0.zip
  2. Extract it to some folder, for me this is D:\Dev\msvc_bug_test
  3. Open sdk/angelscript/projects/msvc2015/angelscript.sln in Visual Studio 2017
  4. It will ask to upgrade the project to SDK 10.0.17134.0 and toolset v141, so we do that
  5. We switch the build to Release and build the project
  6. Close the Visual Studio solution, and make a new solution/project, I'll call it bugtest
  7. Switch to Release configuration
  8. Switch the runtime library to /MT in order to match Angelscript