Skip to content

Instantly share code, notes, and snippets.

View DreamVB's full-sized avatar

Ben DreamVB

View GitHub Profile
@DreamVB
DreamVB / bjPak.cs
Last active February 18, 2022 15:40
Combine multiple files into single file
// Here is a simple class to pack multiple files into one single file.
// it does not support writeing the files dictionary structure as of yet
// This was made as I needed something quick to pack many csv files.
using System;
using System.Collections.Generic;
using System.IO;
namespace FilePack
{
@DreamVB
DreamVB / tinybasic.c
Created November 19, 2021 20:37 — forked from pmachapman/tinybasic.c
A tiny BASIC Interpreter
/* A tiny BASIC interpreter */
#include <string.h>
#include <stdio.h>
#include <setjmp.h>
#include <math.h>
#include <ctype.h>
#include <stdlib.h>
#define NUM_LAB 100
@DreamVB
DreamVB / example.cs
Created October 18, 2021 22:19
Simple XML Config class for reading and writing basic config files.
using System;
using System.Windows.Forms;
using DreamVB.XML.Config;
namespace XmlTest
{
public partial class Form1 : Form
{
public Form1()
{
@DreamVB
DreamVB / crypt.cs
Created October 16, 2021 21:11
TripleDESC encryption for strings
// A simple class using the TripleDESC encryption to encrypt and decrypt text using a password,
// By DreamVB
using System;
using System.Text;
using System.Security.Cryptography;
using System.IO;
namespace DreamVB.txtCrpyt
{
public class TextCrypt
@DreamVB
DreamVB / example.cs
Created October 15, 2021 10:05
rpn calculator class with variables and functions
using System;
using System.Windows.Forms;
using DreamVB.RPNCalulator;
namespace RPNTest
{
public partial class Form1 : Form
{
public Form1()
{
@DreamVB
DreamVB / Example.cs
Created October 8, 2021 20:51
A small Text formated Single Table Database
TextDB db = new TextDB();
private void NewDatabase()
{
List<string> values = new List<string>();
TextDB.FieldDef fd;
List<TextDB.FieldDef> elms = new List<TextDB.FieldDef>();
fd.Name = "Name";
fd.Length = 10;
@DreamVB
DreamVB / config.cs
Last active September 25, 2021 20:39
A full INI reader and writer for C#
// DreamVB.Config Version 1.0.1
// This is a full class for reading and writing to Windows INI Files.
// This project is a raw class uses no Windows API class.
// What's in side this class
// Load config data from a file.
// Load config data from a raw string
// Read and write string values
// Read and write Integer, Double values, Boolean values, Long values
// Read strings that have line breaks and also write strings with line breaks.
@DreamVB
DreamVB / RecBase.cs
Last active August 5, 2021 18:59
RecBase A simple Database System Class For C#
/*
* RecBase Beta 2.5
*
* RecBase is a small project I am working on to make my own DBMS the system is very basic
* it uses plain text files as the tables at the moment it only supports one table
* it can be used to store very simple data maybe for a simple address book
*
* What I hope to add next
* Work with multiple tables
* Add support for encrypted dbases
@DreamVB
DreamVB / main.cpp
Created July 18, 2021 20:47
Example Of a Bank Account
// A simple bank account program made in Visual C++ 2013
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class Bank{
private:
struct account_info
@DreamVB
DreamVB / xstring.cpp
Created July 14, 2021 21:50
Custom String Class
//XString class a custom string class for C++
//Please follow me if you like this code
#include <iostream>
using namespace std;
class XString{
private:
char *src = nullptr;
unsigned int s_size;