Skip to content

Instantly share code, notes, and snippets.

View Sleaker's full-sized avatar

Nick Minkler Sleaker

View GitHub Profile
@Sleaker
Sleaker / fastpng.java
Created April 6, 2020 22:21
fastpng for java
package net.sourceforge.fastpng;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.zip.CRC32;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;
my @info = ();
my @keys = ();
my @systemGroups = ();
my @backupGroups = ();
my %groups = ();
my $key = "";
my $value = "";
my $newGID = 666;
[–]subreddit message via /r/VoxelGameDev[M] sent 16 hours ago
Sleakes: You have been removed as a moderator from r/VoxelGameDev. If you have a question regarding your removal, you can contact the moderator team for r/VoxelGameDev by replying to this message.
[–]to /r/VoxelGameDev sent 14 hours ago
Guess my services aren't required here anymore.. I'll just move on then.
[–]from SevenSoIaris
[M] via /r/VoxelGameDev sent 14 hours ago
You didn't respond to me when I asked for you to return ownership of the discord back to me, so I removed you as a moderator because I feel that you may be untrustworthy.
@Sleaker
Sleaker / gist:97bedebb91c725ade6014f38249d194b
Last active October 18, 2017 14:06
Changes for Wery's Meren
Lands:
-1 Pine Barrens
-1 Vivid Grove
-1 Vivid Marsh
-1 Myriad Landscape
+1 Swamp
+2 Forest
+1 Urborg, Tomb of Yawgmoth
"C:\Projects\atomicgameengine-VS2015\Atomic.sln" (AtomicTool target) (1) ->
"C:\Projects\atomicgameengine-VS2015\Source\AtomicTool\AtomicTool.vcxproj.metaproj" (default target) (2) ->
"C:\Projects\atomicgameengine-VS2015\Source\ThirdParty\kNet\kNet.vcxproj.metaproj" (default target) (28) ->
"C:\Projects\atomicgameengine-VS2015\Source\ThirdParty\kNet\kNet.vcxproj" (default target) (33) ->
(ClCompile target) ->
C:\Projects\atomicgameengine\Source\ThirdParty\kNet\include\kNet/DebugMemoryLeakCheck.h(37): error C2323: 'ope
rator new': non-member operator new or delete functions may not be declared static or in a namespace other than
the global namespace [C:\Projects\atomicgameengine-VS2015\Source\ThirdParty\kNet\kNet.vcxproj]
C:\Projects\atomicgameengine\Source\ThirdParty\kNet\include\kNet/DebugMemoryLeakCheck.h(42): error C2323: 'ope
@Sleaker
Sleaker / PetTracker.lua
Last active November 16, 2015 23:15
PetTracker Aurora skin
local _, mods = ...
mods["PLAYER_LOGIN"]["PetTracker"] = function(self, F, C)
local r, g, b = C.r, C.g, C.b
--print("PetTracker", F, C)
local function HideInsets(element)
element.InsetBorderBottom:Hide()
element.InsetBorderTop:Hide()
element.InsetBorderRight:Hide()
element.InsetBorderLeft:Hide()
@Sleaker
Sleaker / gist:27521de9ca4b418b0fe9
Created May 1, 2015 05:39
Economy Interface Draft
/**
* Rough draft of economy interface, and questions.
*
* Use case: Plugin (Consumer) wants to allow players to buy and sell items from a chest. Plugin (Provider) offers economy/currency
* to do so. The Consumer will need to allow the player to setup the chest to sell the items. This will require an account linked
* to the chest. This could be a new account the consumer sets up, or the player's wallet provided by the economy implementation, or
* another account that the player owns.
*
* When another player purchases an item from the store the consumer initiates a transfer from the purchaser's wallet, to the
* account that was setup for the chest shop, if successful they get the item.