Skip to content

Instantly share code, notes, and snippets.

View LB--'s full-sized avatar

LB--

  • Clickteam
View GitHub Profile
@LB--
LB-- / menu text.json
Last active August 29, 2015 14:09
Minecraft-like splash-screen texts that are intended for a game I might never make despite being on my mind for years.
[
"(the reason you can't sleep at night)",
"(fuel for your nightmares)",
"Free jump scares!",
"Don't forget to commentate!",
"Don't turn down the sound!",
"(yes, it's like Minecraft)",
"(the internship from hell)",
"Put it on your resume!",
"Upload it to YouTube!",
@LB--
LB-- / cs-probability-hw1.cpp
Created September 3, 2014 18:02
Wrote this to speed up my homework solving process instead of using excel.
#include <iostream>
#include <vector>
#include <cmath>
int main()
{
std::vector<long double> v;
{
long double d;
while(std::cin >> d)
#include <iostream>
#include <memory>
struct Base
{
virtual ~Base() = default;
struct Inner
{
Inner(Base &b)
Exception in thread "main" InfiniteException
at InfiniteException.main(InfiniteException.java:6)
Caused by: InfiniteException
at InfiniteException.getCause(InfiniteException.java:12)
at java.lang.Throwable.printStackTrace(Throwable.java:665)
at java.lang.Throwable.printStackTrace(Throwable.java:643)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1061)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
at java.lang.Thread.dispatchUncaughtException(Thread.java:1952)
Caused by: InfiniteException
"About":
{
"Name": "Lacewing Relay Client"
"Author": "James McLaughlin"
"Copyright": "Copyright (C) 2007 - 2011 James McLaughlin"
"Comment": "This extension acts as a client for the Lacewing Relay protocol. More information is available at http://lacewing-project.org"
"URL": "http://www.lacewing-project.org"
"Help": "Help/Lacewing.chm"
"Identifier": "OCli"
}
@LB--
LB-- / rebuild.bat
Last active January 1, 2016 17:39
rebuild.bat - Windows build script for ChessPlusPlus
del /s /f /q .\build\* && for /f %%f in ('dir /ad /b .\build\ ') do rd /s /q .\build\%f
title ChessPlusPlus-Build && mkdir build
cd build && cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_FLAGS="-DCHESSPP_TRUNC_LOGS=1 -Wall -Wextra -pedantic -Winit-self -Wredundant-decls -Wcast-align -Wfloat-equal -Wunreachable-code -Wmissing-include-dirs -Wmain -Werror -Wfatal-errors -Wno-unused-parameter -Wno-unused-local-typedefs" -DSTATIC_BUILD=1 -DBOOST_ROOT=C:/MinGW -DSFML_ROOT=C:/MinGW ../
cmd /k "make"
@LB--
LB-- / settings.json
Created December 1, 2013 23:53
New Bukkit Plugin idea
{
"/hugall":
{
"by": "You hug everyone",
"all": "%0 hugs you and everyone else"
},
"/hug *":
{
"by": "You hug %*",
"*": "%0 hugs you"
@LB--
LB-- / hSDK Planning 1.cpp
Created November 16, 2013 22:20
Just some code snippets I used for planning while I only had access to a computer that was not mine and had no internet access.
//fix for void returns
template<>
struct Enforce32bit<void> final
{
struct void_0
{
void_0(...)
{
}
#include <iostream>
#include <tuple>
namespace
{
template<typename T>
using identity = T;
template<typename T, typename... V>
struct RAII_Set_impl
@LB--
LB-- / not in base 3
Created October 3, 2013 05:11
not in base 3 - One summer's day, long ago, I joined ClickConverse and was presented with an opportunity I could not pass up. It turned out better than I expected, and even funnier than I expected for the people that witnessed it. I'm just reposting this here since I'm not too trusting of pastebin.
[23:55] LB has entered the room
[23:55] <liquixcat> yeah cause 1111 is 15
[23:55] <Looki> like, the highest bit set
[23:55] <LB> not in base 3
[23:55] <Looki> is the magnitude
[23:55] LB has left the room
[23:56] <Looki> yo LB
[23:56] <RootKernel> xD
[23:56] <Looki> oh sh
[23:56] <RootKernel> quick draw