Skip to content

Instantly share code, notes, and snippets.

View Wunkolo's full-sized avatar
💻

Wunk Wunkolo

💻
View GitHub Profile
@Wunkolo
Wunkolo / noise.py
Created June 22, 2014 02:00
HexChat python scripts
import xchat, re, random
import string
__module_name__ = "Noise"
__module_version__ = "1.0.0"
__module_description__ = "Generates random colored string of the length specified"
def RandomWord(Length):
charlist = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&\'()*+,-./:;<=>?@[\]^_`{|}~"
word = ""
@Wunkolo
Wunkolo / SaiPal.cpp
Created October 5, 2014 05:37
SaiPal
#include <windows.h>
#include <iostream>
#include <iomanip>
#include <stdlib.h>
#include <conio.h>
#include <TlHelp32.h> //GetModuleBase
#pragma pack()
struct Color
{
Color()
@Wunkolo
Wunkolo / FTEX File
Last active August 29, 2015 14:12
010 editor templates for various Fox engine file formats
typedef enum <uint>
{
FTEX_Param = 1, // Found for srm and mtm files
// Each channel acts as material parameter
// R = Ambient Occlusion
// G = Specular Albedo
// B = Roughness
FTEX_Color = 3, // Found for bsm files(albedo texture)
FTEX_Cubemap = 7, // Found for cbm(cubemap) and
@Wunkolo
Wunkolo / spiral.cpp
Created February 4, 2015 02:03
Spiral generator
//Spirals
//┌─────────┐
//│┌───────┐│
//││┌─────┐││
//│││┌───┐│││
//││││┌─┐││││
//│││││└┘││││
//││││└──┘│││
//│││└────┘││
//││└──────┘│
@Wunkolo
Wunkolo / Pi_Approx.cpp
Created February 4, 2015 02:12
Pi Approximation
// Pi approximatization
//http://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80
//Slow conversion...
#include <stdint.h>
#include <stdio.h>
int main()
{
double result = 0;
for( size_t k = 1; k <= 1000000; k++ )
@Wunkolo
Wunkolo / TinySHA1.hpp
Created April 10, 2015 05:38
Messy little program for salted Blam Engine SHA1 checksums.
/*
*
* TinySHA1 - a header only implementation of the SHA1 algorithm in C++. Based
* on the implementation in boost::uuid::details.
*
* SHA1 Wikipedia Page: http://en.wikipedia.org/wiki/SHA-1
*
* Copyright (c) 2012-22 SAURAV MOHAPATRA <mohaps@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
<!DOCTYPE html>
<head>
<title>{Title}{block:PostTitle} | {PostTitle}{/block:PostTitle}{block:PostSummary} | {PostSummary}{/block:PostSummary}</title>
<meta charset="utf-8">
<meta name="color:Text" content="#ddd" />
<meta name="color:Background" content="#111" />
<meta name="color:ContentBackground" content="#151515" />
<meta name="color:Trims" content="#444" />
<meta name="color:TrimsSecondary" content="#555" />
<meta name="color:Links" content="#fef248" />
@Wunkolo
Wunkolo / Field.hpp
Created September 14, 2015 18:48
Implementation of the Drunken Biship
#pragma once
#include <stdint.h>
#include <algorithm>
template<size_t Width, size_t Height, typename T>
class Field
{
public:
Field(size_t StartX = Width / 2, size_t StartY = Height / 2)
{
@Wunkolo
Wunkolo / Color.cpp
Created July 27, 2012 22:10
Color class
/*
* Color.cpp
*
* Created on: Jun 5, 2012
* Author: DEElekgolo
*/
#include "Color.hpp"
@Wunkolo
Wunkolo / Matrix.hpp
Created August 19, 2012 02:54
Math tools
#pragma once
//Row Major templated matrix class.
#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
#include <vector>
#include <stdexcept>