Skip to content

Instantly share code, notes, and snippets.

View EightyVice's full-sized avatar
📚
Reading or Coding

Zeyad Ahmed EightyVice

📚
Reading or Coding
View GitHub Profile
@EightyVice
EightyVice / hexdumper.vb
Created September 9, 2018 19:39
Simple Hex Dumper in VB.NET
Public Function HexDump(ByVal Bytes As Byte(), Optional ByVal BytesPerLine As Integer = 16) As String
Dim sb = New StringBuilder()
For line As Integer = 0 To Bytes.Length Step BytesPerLine
Dim linebytes As Byte() = Bytes.Skip(line).Take(BytesPerLine).ToArray()
sb.AppendFormat("{0:x8}" & vbTab, line)
sb.Append(BytesArrayToHex(linebytes))
sb.Append(vbTab)
sb.Append(BytesArrayToString(linebytes))
sb.Append(vbCrLf)
@EightyVice
EightyVice / imgui_vc.cpp
Created July 26, 2018 00:59
ImGUI over directx9-wrapped GTA Vice City
/*
Implementing ImGUI on GTA VC
Coded by: Lemonhaze
Note: a directx8 to direct9 wrapper was used.
*/
// plugin sdk
#include "plugin_vc.h" // Plugin-SDK was used for in game functions.
#include "includes.h"
Dim X As String = "Hello"