Skip to content

Instantly share code, notes, and snippets.

View LB--'s full-sized avatar

LB--

  • Clickteam
View GitHub Profile
@LB--
LB-- / Duskers-bugs.md
Last active January 23, 2023 15:19
List of bugs in Duskers with video examples. Steam has a max character limit for reviews.

See the full review here: Duskers review

All bugs on this list have happened to me or someone else on video at least once. The ones without video examples are common enough or easily reproducable enough that there would be too many examples. Consider that there aren't many videos on Duskers from which to construct this list, and remember that there are many more players who have purchased the game than there are YouTubers who upload video recordings of Duskers. Every bug is likely to have happened many more times to people who never reported the bug or didn't have video evidence of it.

This list was originally created when v1.041 was the latest version. There have since been several new versions that have fixed dozens of bugs. I have gone through and removed bugs that I believe are fixed now, but there may still be a few on this list that have already been fixed. If you know for sure, let me kno

@LB--
LB-- / convert.cmake
Last active March 31, 2018 04:09
A script I use to format my OBS Studio video recordings for upload to Twitch and YouTube. Requires ffmpeg.
cmake_policy(VERSION 3.10)
if(NOT DEFINED SOURCE)
message(FATAL_ERROR "-DSOURCE=")
endif()
if(NOT DEFINED DEST)
set(DEST ".")
endif()
@LB--
LB-- / overload-simple.cpp
Last active March 22, 2018 02:35
I'm working on an implementation of std::overload. This is a simple ugly hacky version that only works with plain functions or +lambdas.
#include <variant>
template<typename R, typename Arg>
using unary_func = R (*)(Arg);
template<typename R, typename... Arg>
struct Callable final
{
std::add_pointer_t<void> const funcs[sizeof...(Arg)];
template<typename GivenArg, std::size_t Index = 0>
static constexpr std::size_t index_of()
@LB--
LB-- / overload-specify.cpp
Created March 22, 2018 03:36
I'm working on an implementation of std::overload. This version requires that you specify the argument types for the callables, but it works on anything that can be called. Also handles const-correctness thanks to SFINAE. If you comment out line 69, GCC optimizes it to `return 10;`: https://godbolt.org/g/2GFgFX
#include <variant>
namespace impl
{
template<typename T, typename Callable>
struct Overload
{
Callable callable;
auto operator()(T &t) noexcept(noexcept(callable(t)))
{