Skip to content

NHTHEBEST/NHTHEBEST-DLL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NHTHEBEST DLLs

Codacy Badge

-- 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 NetworkLog 
    {
        public string LogServer;
        public int LogSendSize = 10000;
        public void SendLog();
        public void Log(object 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; }
        public static int PhysicalCores { get; }
        public static int PhysicalProcessors { get; }
    }
}

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();
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages