NHTHEBEST-DLL 1.0.0

Color Sorting a Simple NetCat and Some Task Management

Install-Package NHTHEBEST-DLL -Version 1.0.0
dotnet add package NHTHEBEST-DLL --version 1.0.0
<PackageReference Include="NHTHEBEST-DLL" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NHTHEBEST-DLL --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NHTHEBEST DLLs

-- The DLL that has some usfull functions

Functions:

  • NetCat Lib
  • Log That gets send to server
  • JS & CSS Minifyer
  • C# and VB complier - BETA
  • Convert image to on color average color
  • Console FX
    • Linux Style Console Log
    • Linux Style Console Hash Percent Bar
  • CPU info class
  • Task Splitter aka SuperThread

NetCat:

namespace Network 
{
    class NetCat 
    {
        // client
        public void Connect(string host, int port);
        // server
        public void Listen(IPAddress host, int port);
        public void Dispose();
        // all
        public void Send(string text);
        public void SendBytes(byte[] data);
        public string ReceiveLine();
        public byte[] ReceiveBytes(int bytes);
    }
}

Log:

namespace Loging 
{
    public class Log 
    {
        public string LogServer;
        public int LogSendSize = 10000;
        public void SendLog();
        public void log(string text);
    }
}

JS & CSS Minifyer:

namespace Code 
{
    public class javascript
    {
        public static string Minify(string code);
    }
    public class css
    {
        public static string Minify(string code);
    }
}

VB & C# Complier BETA:

namespace Code 
{
    public class CS
    {
         public static Action Compile(string code, 
         string namespaceandclass, 
         string mainfunction, 
         string[] ReferencedAssemblies, 
         bool InMem = true, bool Exe = true);
    }
    public class VB
    {
         public static Action Compile(string code,
         string namespaceandclass, 
         string mainfunction, 
         string[] ReferencedAssemblies, 
         bool InMem = true, bool Exe = true);
    }
}

Image to Color:

namespace Graphics
{
    public class SortImgs
    {
        public int Resolution { get; private set; }
        public int Height { get; private set; }
        public int Width { get; private set; }
        public Color GetColor(Image image);
        public List<Color> GetColors(List<Image> images);
        Public Color[] GetColors(Image[] images);
        public event EventHandler<LineEventArgs> Line_done;
        public event EventHandler<PixalEventArgs> Pixal_done;
    }
    public class PixalEventArgs
    {
        public int Pixals { get; set; }
    }
    public class LineEventArgs
    {
        public int Lines { get; set; }
    }
}

Console FX:

namespace Graphics
{
    public class ConsoleFX
    {
        public static void HashPrecentBar(int Value, int Off);
        public static void ColorLog(object data, LogStatus status = LogStatus.OK);
    }
    public enum LogStatus
    {
        OK, Fail, Warning
    }
}

CPU Info:

namespace Efficiency
{
    public sealed class CPU 
    {
        public static int LogicalProcessors { get; private set; }
        public static int PhysicalCores { get; private set; }
        public static int PhysicalProcessors { get; private set; }
    }
}

Task Splitter:

namespace Efficiency
{
    public class SuperThread 
    {
       public List<Action> Code { get; set; }
        public int MaxCoresToUse { get; set; } = CPU.LogicalProcessors;
        public void Join();
        public void Start();
    }
}

NHTHEBEST DLLs

-- The DLL that has some usfull functions

Functions:

  • NetCat Lib
  • Log That gets send to server
  • JS & CSS Minifyer
  • C# and VB complier - BETA
  • Convert image to on color average color
  • Console FX
    • Linux Style Console Log
    • Linux Style Console Hash Percent Bar
  • CPU info class
  • Task Splitter aka SuperThread

NetCat:

namespace Network 
{
    class NetCat 
    {
        // client
        public void Connect(string host, int port);
        // server
        public void Listen(IPAddress host, int port);
        public void Dispose();
        // all
        public void Send(string text);
        public void SendBytes(byte[] data);
        public string ReceiveLine();
        public byte[] ReceiveBytes(int bytes);
    }
}

Log:

namespace Loging 
{
    public class Log 
    {
        public string LogServer;
        public int LogSendSize = 10000;
        public void SendLog();
        public void log(string text);
    }
}

JS & CSS Minifyer:

namespace Code 
{
    public class javascript
    {
        public static string Minify(string code);
    }
    public class css
    {
        public static string Minify(string code);
    }
}

VB & C# Complier BETA:

namespace Code 
{
    public class CS
    {
         public static Action Compile(string code, 
         string namespaceandclass, 
         string mainfunction, 
         string[] ReferencedAssemblies, 
         bool InMem = true, bool Exe = true);
    }
    public class VB
    {
         public static Action Compile(string code,
         string namespaceandclass, 
         string mainfunction, 
         string[] ReferencedAssemblies, 
         bool InMem = true, bool Exe = true);
    }
}

Image to Color:

namespace Graphics
{
    public class SortImgs
    {
        public int Resolution { get; private set; }
        public int Height { get; private set; }
        public int Width { get; private set; }
        public Color GetColor(Image image);
        public List<Color> GetColors(List<Image> images);
        Public Color[] GetColors(Image[] images);
        public event EventHandler<LineEventArgs> Line_done;
        public event EventHandler<PixalEventArgs> Pixal_done;
    }
    public class PixalEventArgs
    {
        public int Pixals { get; set; }
    }
    public class LineEventArgs
    {
        public int Lines { get; set; }
    }
}

Console FX:

namespace Graphics
{
    public class ConsoleFX
    {
        public static void HashPrecentBar(int Value, int Off);
        public static void ColorLog(object data, LogStatus status = LogStatus.OK);
    }
    public enum LogStatus
    {
        OK, Fail, Warning
    }
}

CPU Info:

namespace Efficiency
{
    public sealed class CPU 
    {
        public static int LogicalProcessors { get; private set; }
        public static int PhysicalCores { get; private set; }
        public static int PhysicalProcessors { get; private set; }
    }
}

Task Splitter:

namespace Efficiency
{
    public class SuperThread 
    {
       public List<Action> Code { get; set; }
        public int MaxCoresToUse { get; set; } = CPU.LogicalProcessors;
        public void Join();
        public void Start();
    }
}

Release Notes

Add All Current Features

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 249 6/28/2018