Skip to content

Instantly share code, notes, and snippets.

View LB--'s full-sized avatar

LB--

  • Clickteam
View GitHub Profile
Nicholas@Nicholas-Laptop /cygdrive/c/Users/Nicholas/Desktop/lacenet
$ mingw32-make CC=x86_64-w64-mingw32-gcc LD=x86_64-w64-mingw32-ld
x86_64-w64-mingw32-gcc -O0 -g -DLNET_DEBUG -std=gnu99 -Wall -Iinclude src/server/request/join_channel.c -c -o src/server/request/join_channel.o
src/server/request/join_channel.c: In function 'lnclient_proc_request_join_channel':
src/server/request/join_channel.c:40:10: warning: passing argument 2 of 'lnserver_send_failure_join_channel' from incompatible pointer type [enabled by default]
In file included from src/server/request/../client.h:33:0,
from src/server/request/join_channel.c:30:
src/server/request/../server.h:114:6: note: expected 'const char *' but argument is of type 'lnserver_client'
src/server/request/join_channel.c:40:10: error: too many arguments to function 'lnserver_send_failure_join_channel'
In file included from src/server/request/../client.h:33:0,
@LB--
LB-- / Maze Solving
Created June 26, 2013 04:32
https://www.dropbox.com/s/clruww60hmlctyp/Main.java Testing out mazes that take really long to solve. Got one that took over 1000 seconds!
C:\Users\Nicholas\Desktop\Maze Runner>javac Main.java
C:\Users\Nicholas\Desktop\Maze Runner>pause
Press any key to continue . . .
C:\Users\Nicholas\Desktop\Maze Runner>java Main
192971974615189 ............... ###............
|31||34|4418966 |..||..|....... |.#||..|.......
7|8365559913696 .|............. .|###..........
Linking CXX executable chessplusplus.exe
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-w64-mingw32
Thread model: posix
"C:/MinGW/bin/g++.exe" -std=c++11 -O3 -D NDEBUG "-L\\lib" -v -m64 -o chessplusp
lus.exe CMakeFiles/chessplusplus.dir/src/Application.cpp.obj CMakeFiles/chessplu
splus.dir/src/AppStateGame.cpp.obj CMakeFiles/chessplusplus.dir/src/board/Bishop
.cpp.obj CMakeFiles/chessplusplus.dir/src/board/King.cpp.obj CMakeFiles/chessplu
splus.dir/src/board/Knight.cpp.obj CMakeFiles/chessplusplus.dir/src/board/Pawn.c
pp.obj CMakeFiles/chessplusplus.dir/src/board/Queen.cpp.obj CMakeFiles/chessplus
>clang++ -std=c++11 -fsyntax-only -Iinclude/ src/*.cpp && clang++ -std=c++11 -fsyntax-only -Iinclude/ example/example-relay-server.cpp && clang++ -std=c++11 -fsyntax-only -Iinclude/ example/example-relay-client.cpp
In file included from src/RelayServer.cpp:3:
In file included from C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/
include\set:61:
C:/clang/bin/../lib/clang/3.3/../../../x86_64-w64-mingw32/include\bits/stl_set.h
:205:57: error:
no member named 'value' in
'std::is_nothrow_copy_constructible<std::less<unsigned short> >'
noexcept(is_nothrow_copy_constructible<_Compare>::value)
@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
#include <iostream>
#include <tuple>
namespace
{
template<typename T>
using identity = T;
template<typename T, typename... V>
struct RAII_Set_impl
@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(...)
{
}
@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-- / 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"
"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"
}