Skip to content

Instantly share code, notes, and snippets.

Nicholas "LB" Braden LB--

Block or report user

Report or block LB--

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@LB--
LB-- / overload-specify.cpp
Created Mar 22, 2018
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
View overload-specify.cpp
#include <variant>
namespace impl
{
template<typename T, typename Callable>
struct Overload
{
Callable callable;
auto operator()(T &t) noexcept(noexcept(callable(t)))
{
@LB--
LB-- / overload-simple.cpp
Last active Mar 22, 2018
I'm working on an implementation of std::overload. This is a simple ugly hacky version that only works with plain functions or +lambdas.
View overload-simple.cpp
#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-- / convert.cmake
Last active Mar 31, 2018
A script I use to format my OBS Studio video recordings for upload to Twitch and YouTube. Requires ffmpeg.
View convert.cmake
cmake_policy(VERSION 3.10)
if(NOT DEFINED SOURCE)
message(FATAL_ERROR "-DSOURCE=")
endif()
if(NOT DEFINED DEST)
set(DEST ".")
endif()
@LB--
LB-- / Duskers-bugs.md
Last active Nov 19, 2019
List of bugs in Duskers with video examples. Steam has a max character limit for reviews.
View Duskers-bugs.md

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.

Game-breaking bugs

These are bugs which are the primary reason for my negative review, and should be the first ones to receive attention.

  • there is a really, really bad bug that can cause random items to be deleted when you load a save or use a warp gate - this can totally ruin your experience and make you not
@LB--
LB-- / duskers-alias.txt
Last active May 21, 2018
My command aliases in Duskers
View duskers-alias.txt
begin=open a1;navigate 1 2 a1; generator 2; status
end=navigate all r1
gg=gather
h=gather
qq=teleport 1 2 3 4 r1;transport 1 2 3 4 r1
explore=teleport 1 $r; scan 1; probe 1; info 1; gather 1 all
check=sensor; teleport 1 sensor $r
move=teleport 1 sensor $r
fetch=navigate $x $r; tow $x; navigate $x r1
switch=remote $rA; remote $rB
@LB--
LB-- / README.md
Created Feb 1, 2017
Executable configuration file for Portal 2 PeTI maps that skips walking up the stairs from the elevator.
View README.md
  1. navigate to your Portal 2 installation folder (from within Steam you can use the Browse Local Files button)
  2. navigate to /portal2/cfg/ and create the skipintro.cfg file and copypaste from this gist
  3. run the game, open the console, and bind a key to exec skipintro - for example: bind t "exec skipintro"

When you load a puzzlemaker or beemod map, you can use the keybind as soon as the map loads. Do not use it after having already entered the map. Beemod maps with preplaced gel might get double-coated, but it should be mostly harmless.

@LB--
LB-- / magnum-tests_AMD-A8-8650-Radeon-R7.txt
Last active Oct 10, 2016
-O4, set MAGNUM_DISABLE_EXTENSIONS=GL_ARB_get_texture_sub_image
View magnum-tests_AMD-A8-8650-Radeon-R7.txt
[ 76%] Performing test step for 'Magnum'
Test project C:/Users/LB/Code/Magnum/build/Magnum-prefix/src/Magnum-build
Start 1: MathAlgorithmsGaussJordanTest
1/142 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.02 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/142 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.02 sec
Start 3: MathAlgorithmsQrTest
3/142 Test #3: MathAlgorithmsQrTest .................. Passed 0.02 sec
Start 4: MathAlgorithmsSvdTest
4/142 Test #4: MathAlgorithmsSvdTest ................. Passed 0.02 sec
@LB--
LB-- / magnum-tests_AMD-A8-8650-Radeon-R7.txt
Last active Oct 10, 2016
-O4, set MAGNUM_DISABLE_EXTENSIONS=GL_ARB_compressed_texture_pixel_storage
View magnum-tests_AMD-A8-8650-Radeon-R7.txt
[ 76%] Performing test step for 'Magnum'
Test project C:/Users/LB/Code/Magnum/build/Magnum-prefix/src/Magnum-build
Start 1: MathAlgorithmsGaussJordanTest
1/142 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.03 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/142 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.03 sec
Start 3: MathAlgorithmsQrTest
3/142 Test #3: MathAlgorithmsQrTest .................. Passed 0.03 sec
Start 4: MathAlgorithmsSvdTest
4/142 Test #4: MathAlgorithmsSvdTest ................. Passed 0.03 sec
@LB--
LB-- / magnum-tests_AMD-A8-8650-Radeon-R7.txt
Created Oct 10, 2016
-O4, set MAGNUM_DISABLE_EXTENSIONS=GL_EXT_direct_state_access
View magnum-tests_AMD-A8-8650-Radeon-R7.txt
[ 76%] Performing test step for 'Magnum'
Test project C:/Users/LB/Code/Magnum/build/Magnum-prefix/src/Magnum-build
Start 1: MathAlgorithmsGaussJordanTest
1/142 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.02 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/142 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.02 sec
Start 3: MathAlgorithmsQrTest
3/142 Test #3: MathAlgorithmsQrTest .................. Passed 0.02 sec
Start 4: MathAlgorithmsSvdTest
4/142 Test #4: MathAlgorithmsSvdTest ................. Passed 0.02 sec
@LB--
LB-- / magnum-tests_AMD-A8-8650-Radeon-R7.txt
Last active Oct 10, 2016
-O4, set MAGNUM_DISABLE_EXTENSIONS=GL_ARB_direct_state_access
View magnum-tests_AMD-A8-8650-Radeon-R7.txt
[ 76%] Performing test step for 'Magnum'
Test project C:/Users/LB/Code/Magnum/build/Magnum-prefix/src/Magnum-build
Start 1: MathAlgorithmsGaussJordanTest
1/142 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.02 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/142 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.02 sec
Start 3: MathAlgorithmsQrTest
3/142 Test #3: MathAlgorithmsQrTest .................. Passed 0.02 sec
Start 4: MathAlgorithmsSvdTest
4/142 Test #4: MathAlgorithmsSvdTest ................. Passed 0.02 sec
You can’t perform that action at this time.