This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <iostream> | |
#include <iomanip> | |
#include <stdlib.h> | |
#include <conio.h> | |
#include <TlHelp32.h> //GetModuleBase | |
#pragma pack() | |
struct Color | |
{ | |
Color() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Spirals | |
//┌─────────┐ | |
//│┌───────┐│ | |
//││┌─────┐││ | |
//│││┌───┐│││ | |
//││││┌─┐││││ | |
//│││││└┘││││ | |
//││││└──┘│││ | |
//│││└────┘││ | |
//││└──────┘│ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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++ ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Color.cpp | |
* | |
* Created on: Jun 5, 2012 | |
* Author: DEElekgolo | |
*/ | |
#include "Color.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
//Row Major templated matrix class. | |
#define _USE_MATH_DEFINES | |
#include <math.h> | |
#include <iostream> | |
#include <vector> | |
#include <stdexcept> |
OlderNewer