Skip to content

Instantly share code, notes, and snippets.

View rhulha's full-sized avatar

Raymond Hulha rhulha

View GitHub Profile
@rhulha
rhulha / money_gui_new.py
Created October 11, 2017 13:49
A program written in python to display SQL data using appJar and SQLAlchemy
from appJar import gui
from sqlalchemy import create_engine, select, Column, Integer, Text, MetaData, Table, Boolean, String, Date, Numeric
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from datetime import datetime
app = gui("Test SQL Alch (ORM GUI)", "1200x900")
app.setBg("#FF9D40")
engine = create_engine('sqlite:///:memory:')
from appJar import gui
from sqlalchemy import create_engine, select, Column, Integer, Text, MetaData, Table, Boolean, String, Date, Numeric
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from datetime import datetime
app = gui("Test SQL Alch (ORM GUI)", "1200x900")
app.setBg("#FF9D40")
engine = create_engine('sqlite:///:memory:')
#define _WIN32_WINNT 0x0601
#ifdef _MSC_VER
#include <boost/config/compiler/visualc.hpp>
#endif
#include <cstdlib>
#include <string>
#include <sstream>
#include <iostream>
@rhulha
rhulha / TestTemplateInheritance.cpp
Created July 1, 2017 07:12
Testing C++ Template Inheritance
#define _WIN32_WINNT 0x0601
#ifdef _MSC_VER
#include <boost/config/compiler/visualc.hpp>
#endif
#include <cstdlib>
#include <string>
#include <sstream>
#include <iostream>
#define _WIN32_WINNT 0x0601
#ifdef _MSC_VER
#include <boost/config/compiler/visualc.hpp>
#endif
#include <cstdlib>
#include <iostream>
#include <string>
#include <boost/bind.hpp>
package net.raysforge.raycommander;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JList;
import net.raysforge.easyswing.EasyList;
import net.raysforge.easyswing.EasySplitPane;
@rhulha
rhulha / Q3MD3.bt
Created March 26, 2017 22:01
010 Editor Binary Template for Quake3 MD3 files
//--------------------------------------
//--- 010 Editor v5.0.2 Binary Template
//
// Author: rhulha
// Purpose: 010 Editor Binary Template for Quake3 MD3 files
//--------------------------------------
LittleEndian();
char signature[4];
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.swing.JMenu;
import javax.swing.JTextField;
void printBitsI(unsigned int num)
{
for (int bit = 0; bit<(sizeof(unsigned int) * 8); bit++) {
printf("%i ", num & 0x01);
num = num >> 1;
}
}
void printBitsC(unsigned char num)
{
@rhulha
rhulha / Q3BSP.bt
Last active September 14, 2018 08:37
010 Editor Binary Template for Quake3 BSP files
//--------------------------------------
//--- 010 Editor v5.0.2 Binary Template
//
// Author: rhulha
// Purpose: 010 Editor Binary Template for Quake3 BSP files
//--------------------------------------
LittleEndian();
char signature[4];