Skip to content

Instantly share code, notes, and snippets.

View RealTrisT's full-sized avatar

TrisT RealTrisT

View GitHub Profile
R_CRYSTAL = "crystal";
R_DARK_MATTER = "darkmatter";
R_DEUT = "deuterium";
R_METAL = "metal";
R_ENERGY = "energy";
R_NAMES = [R_METAL, R_CRYSTAL, R_DEUT, R_DARK_MATTER, R_ENERGY];
class Resource{
#include <stdio.h>
#include <stdlib.h>
/* Precision: leave uncommented which precision to use */
/*#define PRECISION_SINGLE*/
#define PRECISION_DOUBLE
#if defined PRECISION_SINGLE
#define PRECISION_S true
#define PRECISION_D false
@RealTrisT
RealTrisT / sha256.h
Created May 3, 2018 02:50
just a shitty implementation of sha256
#ifndef H_SHA256
#define H_SHA256
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned int uint;
typedef unsigned long long uint64;
from urllib.parse import quote
from os import system, listdir
import sys
import requests
import time
import re
import colorama
#-----------------------------------------------------------------------things you might wanna change
@RealTrisT
RealTrisT / ReclassToStruct.html
Last active October 7, 2017 17:35
Reclass XML Files Parser To c++ Structs
<!--
I created this because the one in actual ReClass Is sort of broken when it comes to custom types and classes.
Also because I didn't notice ReClass didn't actually have that feature until I was done with this.
Anyway, open the xml file, ctrl+a -> ctrl+c, and ctrl+v on the text box.
Hope this helps. Have a nice one.
-->
<!DOCTYPE html>
<html>
<head>
<title>Reclass To Struct</title>