Skip to content

Instantly share code, notes, and snippets.

View tylerreisinger's full-sized avatar

Tyler Reisinger tylerreisinger

  • Philadelphia, PA
View GitHub Profile
@file:Suppress("WeakerAccess", "MemberVisibilityCanBePrivate")
package com.tyler.bitburner.websocket
import com.intellij.notification.NotificationGroupManager
import com.intellij.openapi.Disposable
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.MessageType
import com.intellij.openapi.util.Disposer
@tylerreisinger
tylerreisinger / Xorg.0.log
Last active December 27, 2022 23:02
Logs
X.Org X Server 1.21.1.6
X Protocol Version 11, Revision 0
[ 14.385] Current Operating System: Linux starlight 6.1.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Dec 2022 22:27:55 +0000 x86_64
[ 14.385] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=084465ce-1872-4c76-9c96-20c73e56bb9c rw ibt=off loglevel=3 quiet
[ 14.385]
[ 14.385] Current version of pixman: 0.42.2
[ 14.385] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 14.385] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
void Painter::SubdivideBezier(std::list<Vector2>& points,
const std::list<Vector2>::iterator& start)
{
auto curPt = start;
Vector2 p1 = *curPt;
auto p2Iter = ++curPt;
Vector2 p2 = *curPt;
auto p3Iter = ++curPt;
Vector2 p3 = *curPt;
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@tylerreisinger
tylerreisinger / shader.h
Created May 10, 2019 08:48
OGL Shader Working
static const char* vertex_shader_src =
R"(
#version 440
layout(location = 0) uniform mat4 proj;
layout(location = 0) in vec2 position;
layout(location = 1) in vec2 uv;
layout(location = 2) in vec4 color;
layout(location = 0) out VertexData {
static const char* vertex_shader_src =
R"(
#version 430
uniform mat4 proj;
in vec2 position;
in vec2 uv;
in vec4 color;
out VertexData {
#[macro_use]
extern crate syn;
#[macro_use]
extern crate quote;
extern crate approx;
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro_derive(AbsDiffEq)]
diff --git a/entityx/Entity.h b/entityx/Entity.h
index 7c69e0a..7a205c7 100644
--- a/entityx/Entity.h
+++ b/entityx/Entity.h
@@ -34,6 +34,11 @@
#include "entityx/Event.h"
#include "entityx/help/NonCopyable.h"
+//Included on g++ and clang to demangle type_info::name().
+#if defined(__GNUG__) || defined(__clang__)
@tylerreisinger
tylerreisinger / Flags.h
Created April 7, 2018 19:06
Bitflag class
#ifndef FLAGS_H_0099701e_0717_43a3_af27_83c111ea5574
#define FLAGS_H_0099701e_0717_43a3_af27_83c111ea5574
#include <type_traits>
#include <initializer_list>
#include <ostream>
#include <limits>
#include <cmath>
#include <cassert>
@tylerreisinger
tylerreisinger / SpriteFont.cpp
Created April 6, 2018 20:57
SpriteFont class cpp
/*
* SpriteFont.cpp
*
* Created on: Dec 1, 2012
* Author: tyler
*/
#include "SpriteFont.h"
#include "FontFace.h"