Skip to content

Instantly share code, notes, and snippets.

View LB--'s full-sized avatar

LB--

  • Clickteam
View GitHub Profile
Test project C:/Users/LB/Code/Magnum/build/Magnum-prefix/src/Magnum-build
Start 1: MathAlgorithmsGaussJordanTest
1/131 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.01 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/131 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.01 sec
Start 3: MathAlgorithmsSvdTest
3/131 Test #3: MathAlgorithmsSvdTest ................. Passed 0.01 sec
Start 4: MathGeometryDistanceTest
4/131 Test #4: MathGeometryDistanceTest .............. Passed 0.01 sec
Start 5: MathGeometryIntersectionTest
Test project C:/Users/LB/Code/Magnum/build/Magnum-prefix/src/Magnum-build
Start 1: MathAlgorithmsGaussJordanTest
1/131 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.02 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/131 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.02 sec
Start 3: MathAlgorithmsSvdTest
3/131 Test #3: MathAlgorithmsSvdTest ................. Passed 0.02 sec
Start 4: MathGeometryDistanceTest
4/131 Test #4: MathGeometryDistanceTest .............. Passed 0.02 sec
Start 5: MathGeometryIntersectionTest
@LB--
LB-- / CMakeLists.txt
Created March 30, 2016 15:12
CMake Boost Example
cmake_minimum_required(VERSION 3.4)
project(boost-example
VERSION 0.0.0
LANGUAGES
CXX
)
find_package(Boost 1.60 REQUIRED
COMPONENTS

There are two common workflows - 'merge based workflow' and 'rebase workflow'.

In the former, you use git merge to merge in changes which creates merge commits (commits with multiple parents). People who like preserving history tend to prefer merge based workflow. I personally like to use git merge --no-ff --no-commit, which allows git to do what it can to automatically make the merge but then lets me inspect the files before concluding the merge - I do this to ensure that every commit compiles. There are cases where git can automatically merge two compiling commits into one that doesn't compile (e.g. one branch removed an unused variable and the other branch added code that uses that variable - no conflict because different lines were changed, and each branch compiles, but the automatic merge does not compile).

The latter workflow is typically used by people who like a clean commit graph. Generally this is because they use tools that visually represent the commit graph to them and merge-based workflows

@LB--
LB-- / LICENSE
Last active July 17, 2018 00:33
LB's Windows Unicode Helper Functions - convert between UTF-8 and UTF-16/Unicode on Windows
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@LB--
LB-- / heart.cpp
Created May 8, 2016 05:19
Mother's Day C++ Heart
#include <cmath>
#include <iostream>
#include <vector>
static constexpr std::double_t PI = std::acos(-1.0);
static constexpr std::size_t SIZE_X = 100;
static constexpr std::size_t SIZE_Y = 50;
static constexpr std::double_t STEP = 0.01;
static constexpr std::double_t MAX = PI*2.0;
@LB--
LB-- / CONTRIBUTING.md
Last active July 5, 2016 14:48
My personal contributing guidelines

git

  • Read the license! Understand that your contribution will exist under the terms of the license and that as a result you may be giving up ownership of your code!
  • Preserve history! Only rebase or squash as told to do so in this guide. We don't care about the way commit graphs look.
  • Every commit must compile! This helps with bisecting, among other things.
  • When adding a new feature, base your work on the oldest commit that will allow your new code to compile and run as intended. This helps with merging specific features into older versions.
  • When fixing bugs, base the fix on the commit that introduced the bug. This helps with merging in bugfixes into older versions for bugfix releases.
  • When changing behavior, base your work on the most recent commit that changed or introduced the behavior. This helps with reverting changes for specially-made old versions, as well as making it easy to trace all the ways something has changed.
  • When removing code, base your work on the most recent commit that chang
#items { overflow: hidden !important; }
*:not(.yt-chat-badge):not(.yt-emoji-icon) { background: transparent !important; }
.gaming-promo, #live-comments-controls, ::-webkit-scrollbar, wbr, .is-deleted, [is-deleted], #panel-pages, yt-live-chat-header-renderer { display: none !important; }
#author-name, #message { color: white !important; text-shadow: -0.5px -0.5px 0 black, 0.5px -0.5px 0 black, -0.5px 0.5px 0 black, 0.5px 0.5px 0 black !important; }
#message { display: block !important; }
#author-name::after { content: ":"; font-weight: 900; }
#message a {color: skyblue !important; font-size: 0 !important; line-height: 9px !important;}
#message a::after { content: attr(href); font-size: 10px !important; }
@keyframes chat-fade { 0% { opacity: 1; position: relative; } 99% { opacity: 0; position: relative; } 100% { opacity: 0; position: absolute; }}
yt-live-chat-text-message-renderer { animation: chat-fade 5s 30s forwards; }
@LB--
LB-- / README.md
Created February 1, 2017 21:21
Executable configuration file for Portal 2 PeTI maps that skips walking up the stairs from the elevator.
  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-- / duskers-alias.txt
Last active April 10, 2023 04:52
My command aliases in Duskers
begin=open r1;navigate 1 2 a1; generator 2; status
end=navigate all r1
gg=gather
h=gather
sg=sensor;gather
qq=teleport 1 r1;teleport 2 r1;teleport 3 r1;teleport 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