I hereby claim:
- I am mctwist on github.
- I am mctwist (https://keybase.io/mctwist) on keybase.
- I have a public key ASC5PRJewudjFa2Z5InRBTqnsBW5l0ueJlqTTvOfcI6Z2wo
To claim this, I am signing this object:
// One file only | |
// Does not optimize | |
function Compress(%from, %to) | |
{ | |
%obj = new FileObject(); | |
%obj.openForRead(findFirstFile(%from)); | |
%chars = "abcdefghijklmnopqrstuvwxyz"; | |
%current = 0; | |
deleteVariables("$va*"); | |
while (!%obj.isEOF()) |
// ================ | |
// XML Parser | |
// ================ | |
// Author: McTwist | |
// Version: 1.0 | |
// Description: Parses xml code in an easy way | |
// License: Free to use | |
// ================ | |
// When adding, prepare stack |
// ====================== // | |
// McTwist's Math library // | |
// ====================== // | |
// Version: 0.5 (prototype) | |
// Integer allowed only(Unless function tells otherwise) | |
// Note: Library is for demonstration only. Be aware that it might not be | |
// correct and performance may be horrible on some methods. | |
function Math::onAdd(%this) | |
{ |
// ================ | |
// INI Parser | |
// ================ | |
// Author: McTwist | |
// Version: 1.0 | |
// Description: Parses ini code in an easy way | |
// License: Free to use | |
// ================ | |
// INI reading |
// Create a possible bind to a function. This will place it in respective division. | |
// If division and name is the same, it will replace the function. | |
function CreateBind(%division, %name, %cmd) | |
{ | |
if (%name $= "" || %cmd $= "") | |
return; | |
%remapid = $remapCount; | |
%new = true; | |
// Clone current object | |
function SimObject::clone(%this, %name) | |
{ | |
%this = %this.getID(); | |
%oldName = %this.getName(); | |
%name = %name !$= "" ? %name : %oldName; | |
%this.setName(__CLONE_OBJECT__); | |
%obj = new (%this.getClassName())(%name : __CLONE_OBJECT__); | |
%this.setName(%oldName); | |
return %obj; |
// -------------------------- | |
// Name: Saver | |
// Description: Database System | |
// Version: 1.5a | |
// Author: McTwist | |
// Copyright: Free for all | |
// License: Do not change anything | |
// -------------------------- | |
// Notes | |
// No saving system is the same, but all saving systems is the other one alike. |
// Converts a number to a string correctly | |
function num2str(%num) | |
{ | |
if (mAbs(%num) < 1000000) | |
return "" @ %num; | |
if (%num < 0) | |
{ | |
%neg = true; | |
%num = -%num; | |
} |
I hereby claim:
To claim this, I am signing this object:
// Echo a huge string in a safe way | |
// Note: It will try to make the output consistent, but too long chunks with | |
// no newline will break the consistency | |
function echos(%str) | |
{ | |
// Maximum amount of characters that can be output with normal echo | |
%max = 4095; | |
%len = strlen(%str); | |
for (%i = 0; %i < %len; %i += getMin(%size + 1, %max)) | |
{ |