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
#ifndef __CBUFFER_HPP | |
#define __CBUFFER_HPP | |
#include <memory> | |
#include <stdexcept> | |
template <typename T> | |
class Circular_buffer | |
{ | |
public: |
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 <vector> | |
#include <string> | |
#include <fstream> | |
class Text_file | |
{ | |
public: | |
Text_file() : strings() {} | |
Text_file(const std::string& file_name) : strings() |
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
/* | |
Copyright (c) 2016 Snorflake | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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
word | |
word2 | |
word3 | |
word4 |
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
#ifndef SINGLETON_H | |
#define SINGLETON_H | |
template<class T> | |
class singleton | |
{ | |
public: | |
static T* instance() | |
{ | |
return m_instance ? m_instance : (m_instance = new T); |
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 <string> | |
#include <iomanip> | |
#include <sstream> | |
template<typename T> T getvfunc(void *base, unsigned int index) | |
{ | |
DWORD** tablepointer = (DWORD**)base; | |
DWORD* tablebase = *tablepointer; |
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
--converts string to shellcode string | |
local useconsoleargs = false | |
local function converttocha(str) | |
if str == nil then print ("Error - no string passed!") return end | |
local length = #str + 1 | |
-- will break variable name if special characters in the string (". / * etc") | |
local retn = "char ch" .. str .. "[" .. length .. "] = {" |
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
function xd(str) local count = 0 for i in string.gmatch(str,"[Dd]") do count = count + 1 end local str = "ecks d" for i = 1, count do str = str .. "EE" end return str end |
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
--[[MUST BE RUN ON LUA 5.3 OR DEBUG HOOKS WONT WORK]] | |
os.execute("cls") | |
print([[ __ ________ _ _____ ____ __ __ ______ _____ _____ | |
\ \ / / ____| | / ____/ __ \| \/ | ____| /\ | __ \|_ _| /\ | |
\ \ /\ / /| |__ | | | | | | | | \ / | |__ / \ | |__) | | | / \ | |
\ \/ \/ / | __| | | | | | | | | |\/| | __| / /\ \ | _ / | | / /\ \ | |
\ /\ / | |____| |___| |___| |__| | | | | |____ / ____ \| | \ \ _| |_ / ____ \ | |
\/ \/ |______|______\_____\____/|_| |_|______| /_/ \_\_| \_\_____/_/ \_\]]) | |
print([[ _ _____ _ __ ___ |
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
--thanks metaman for some stuff | |
os.execute("cls") | |
print([[ __ ________ _ _____ ____ __ __ ______ _____ _____ | |
\ \ / / ____| | / ____/ __ \| \/ | ____| /\ | __ \|_ _| /\ | |
\ \ /\ / /| |__ | | | | | | | | \ / | |__ / \ | |__) | | | / \ | |
\ \/ \/ / | __| | | | | | | | | |\/| | __| / /\ \ | _ / | | / /\ \ | |
\ /\ / | |____| |___| |___| |__| | | | | |____ / ____ \| | \ \ _| |_ / ____ \ | |
\/ \/ |______|______\_____\____/|_| |_|______| /_/ \_\_| \_\_____/_/ \_\ | |
]]) |
NewerOlder