This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local sub = string.sub | |
local concat = table.concat | |
local insert = table.insert | |
string.where = function(self, predicate) | |
local buf = {} | |
for i = 1, #self do | |
local ch = sub(self, i, i) | |
if (predicate(ch)) then | |
insert(buf, ch) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.Json; | |
namespace Meerkat.Json; | |
public interface IJSONSerializable | |
{ | |
} | |
/// <summary> | |
/// Implements the ability to load JSON files. By default, if the json file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.InteropServices; | |
namespace Util; | |
class TwoWayMemoryStream : MemoryStream | |
{ | |
private byte[] _buffer; | |
private TwoWayMemoryStream() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum DDSD | |
{ | |
NONE = 0x00, | |
CAPS = 0x01, | |
HEIGHT = 0x02, | |
WIDTH = 0x04, | |
PITCH = 0x08, | |
PIXELFORMAT = 0x1000, | |
MIPMAPCOUNT = 0x20000, | |
LINEARSIZE = 0x80000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* MIT License | |
* | |
* Copyright (c) 2017-2022 Cody Tilkins | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local class = {} | |
-- Derived from: http://lua-users.org/wiki/CopyTable | |
-- Copies a table | |
local shallowcopy = function(o) | |
local c = {} | |
if (type(o) ~= "table")then | |
c = o | |
return c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See https://gist.github.com/tilkinsc/7f383faccf3722622f5d0cc9bd45e7e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title PoD ping -a -n 10 -4 -w 500 Tester | |
echo Note: If you get stuck, press Ctrl+C then enter 'n' then hit enter again. | |
echo gs 1 | |
ping -a -n 10 -4 -w 500 173.214.173.56 | |
echo gs 3 | |
ping -a -n 10 -4 -w 500 64.235.46.70 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <stdio.h> | |
#include <GL/glew.h> | |
#include <GLFW/glfw3.h> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
REM Default env vars | |
IF NOT DEFINED debug set debug=0 | |
IF NOT DEFINED debug_coverage set debug_coverage=0 | |
IF NOT DEFINED GCC set GCC=gcc | |
IF NOT DEFINED AR set AR=ar | |
IF NOT DEFINED MAKE set MAKE=make |
NewerOlder