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/GitHub/magnum/build
Start 1: MathAlgorithmsGaussJordanTest
1/129 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.07 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/129 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.04 sec
Start 3: MathAlgorithmsSvdTest
3/129 Test #3: MathAlgorithmsSvdTest ................. Passed 0.03 sec
Start 4: MathGeometryDistanceTest
4/129 Test #4: MathGeometryDistanceTest .............. Passed 0.03 sec
Start 5: MathGeometryIntersectionTest
Test project C:/Users/LB/GitHub/magnum/build
Start 1: MathAlgorithmsGaussJordanTest
1/129 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.03 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/129 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.02 sec
Start 3: MathAlgorithmsSvdTest
3/129 Test #3: MathAlgorithmsSvdTest ................. Passed 0.02 sec
Start 4: MathGeometryDistanceTest
4/129 Test #4: MathGeometryDistanceTest .............. Passed 0.02 sec
Start 5: MathGeometryIntersectionTest
Test project C:/Users/LB/GitHub/magnum/build
Start 1: MathAlgorithmsGaussJordanTest
1/129 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.14 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/129 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.04 sec
Start 3: MathAlgorithmsSvdTest
3/129 Test #3: MathAlgorithmsSvdTest ................. Passed 0.04 sec
Start 4: MathGeometryDistanceTest
4/129 Test #4: MathGeometryDistanceTest .............. Passed 0.04 sec
Start 5: MathGeometryIntersectionTest
Test project C:/Users/LB/GitHub/magnum/build
Start 1: MathAlgorithmsGaussJordanTest
1/129 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.07 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/129 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.03 sec
Start 3: MathAlgorithmsSvdTest
3/129 Test #3: MathAlgorithmsSvdTest ................. Passed 0.03 sec
Start 4: MathGeometryDistanceTest
4/129 Test #4: MathGeometryDistanceTest .............. Passed 0.03 sec
Start 5: MathGeometryIntersectionTest
Test project C:/Users/LB/GitHub/magnum/build
Start 1: MathAlgorithmsGaussJordanTest
1/129 Test #1: MathAlgorithmsGaussJordanTest ......... Passed 0.05 sec
Start 2: MathAlgorithmsGramSchmidtTest
2/129 Test #2: MathAlgorithmsGramSchmidtTest ......... Passed 0.02 sec
Start 3: MathAlgorithmsSvdTest
3/129 Test #3: MathAlgorithmsSvdTest ................. Passed 0.02 sec
Start 4: MathGeometryDistanceTest
4/129 Test #4: MathGeometryDistanceTest .............. Passed 0.02 sec
Start 5: MathGeometryIntersectionTest
@LB--
LB-- / ResonanceCascade.cpp
Created September 6, 2015 00:17
C++ supports multiple active exceptions at once - see it in action at http://melpon.org/wandbox/permlink/PscHg988AnzjajyS
#include <iostream>
#include <stdexcept>
#include <exception>
struct ResonanceCascade final
{
ResonanceCascade()
{
std::cout << "ResonanceCascade ctor" << std::endl;
}
//Access the KataPartyService
KataPartyService kps = getServer().getServicesManager().load(KataPartyService.class);
//Get the PartySet
IPartySet parties = kps.getPartySet();
//Get the members for the players p1 and p2
IParty.IMember a = parties.findMember(p1.getUniqueId());
IParty.IMember b = parties.findMember(p2.getUniqueId());
//Check if they are in the same party
if(a != null && b != null && a.getParty() == b.getParty())
{
@LB--
LB-- / j8time.java
Created February 7, 2015 01:58
Java 8 Time Library - just keeping this for reference
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.temporal.ChronoField;
class j8time
{
public static void main (String[] args) throws Throwable
@LB--
LB-- / Minecraft-Name-History.php
Last active July 31, 2016 23:23
Minecraft Name History - http://www.LB-Stuff.com/Minecraft-Name-History - really hacky PHP script, available in public domain
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Minecraft Name History - Nicholas "LB" Braden</title>
<link rel="canonical" href="http://www.LB-Stuff.com/Minecraft-Name-History" />
<link rel="stylesheet" href="/light.css" />
<link rel="icon" type="image/png" href="/LB.png" />
<script src="https://apis.google.com/js/platform.js" async defer></script>
</head>
@LB--
LB-- / args.cpp
Created November 16, 2014 04:06
C++ program arguments - my personal favorite way to get them into a vector of strings. No undefined behavior.
#include <iostream>
#include <string>
#include <vector>
int main(int, char const *const *plain_args)
{
std::basic_string<char const *> const temp {plain_args};
std::vector<std::string> const args {std::begin(temp), std::end(temp)};
for(auto const &arg : args)
{