NHTHEBEST-DLL 1.0.0

dotnet add package NHTHEBEST-DLL --version 1.0.0
NuGet\Install-Package NHTHEBEST-DLL -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: NHTHEBEST-DLL, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NHTHEBEST-DLL as a Cake Addin
#addin nuget:?package=NHTHEBEST-DLL&version=1.0.0

// Install NHTHEBEST-DLL as a Cake Tool
#tool nuget:?package=NHTHEBEST-DLL&version=1.0.0

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();
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 968 6/28/2018

Add All Current Features