Skip to content

Instantly share code, notes, and snippets.

View kklouzal's full-sized avatar

Kyle Klouzal kklouzal

View GitHub Profile
@kklouzal
kklouzal / error_no_error.cpp
Created August 30, 2022 04:24
Was trying to example an error...but no error...
#include <Windows.h>
#include <iostream>
#include <ioapiset.h>
#include <string>
#include <thread>
#include <deque>
class SomeData : public OVERLAPPED
{
public:
@kklouzal
kklouzal / LuaClassBinding.cpp
Created November 2, 2017 23:41
Binding A C++ Class To Lua The Manual Way (shared_ptr memory management)
#include <lua.hpp> // LuaJIT header
#include <iostream> // Access to std::system("PAUSE")
#include <memory>
// A simple class to be bound in our Lua environment.
class MyClass
{
public:
MyClass()
{
@kklouzal
kklouzal / markdown-text-101.md
Created November 1, 2017 14:50 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics*

*Underline italics* __underline italics__

const unsigned int TICKRATE = 60;
const float MS_PER_TICK = 1000 / TICKRATE;
float PROCESSED_TIME = 0;
unsigned int CUR_TICK = 0;
//
// Process Ticks
while ((PROCESSED_TIME + MS_PER_TICK) < NOW)
{
CUR_TICK += 1;
void RegisterProps()
{
irr::io::IFileSystem* FS = Infinity::Graphics::GetDevice()->getFileSystem();
const irr::io::path OriginalWorkingDirectory = FS->getWorkingDirectory();
irr::io::IFileList* Files;
std::vector<const irr::io::path> SearchDirectories;
FindDirectoriesInDirectory(FS, SearchDirectories, "./Models/");
lua_State* L = Infinity::Lua::GetState();