Skip to content

Instantly share code, notes, and snippets.

View OperationDarkside's full-sized avatar

Sebastian Greis OperationDarkside

View GitHub Profile
@OperationDarkside
OperationDarkside / reverse_audio.bat
Created August 9, 2017 22:29
Reverse the audio stream of a video using ffmpeg
ffmpeg -i video_with_rev_audio.mp4 -map 0 -c:v copy -af "areverse" reversed_audio.mp4
@OperationDarkside
OperationDarkside / temp_block.h
Last active October 11, 2017 20:27
Block Loader - Could even contain the texture data
#ifndef TEMP_BLOCK_H
#define TEMP_BLOCK_H
//#include "BlockId.h"
#include <SFML/Graphics.hpp>
#include <vector>
#include <functional>
#include <unordered_map>
#include <fstream>
#include <sstream>
@OperationDarkside
OperationDarkside / NetworkingTest.cpp
Created November 20, 2017 21:33
Minecraft Clone Network test
#include "PlayPositionTest.h"
void PlayPositionTest::run(){
m_net_thread = std::thread([this](){
run_internal();
});
}
void PlayPositionTest::setPlayer(const Player* _player) {
@OperationDarkside
OperationDarkside / testing.cpp
Created September 25, 2018 23:11
C++ Vector Index Performance
#include <iostream>
#include <tuple>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <string>
#include <chrono>
int main() {
std::unordered_map<int, int> index;
@OperationDarkside
OperationDarkside / DomPrototype.cpp
Created December 7, 2019 00:32
First successfull attempt at creating a component aware DOM with Message sending and receiving
#include <vector>
#include <map>
#include <memory>
#include <functional>
#include <iostream>
struct comp;
struct relay {
int nextId = 0;
@OperationDarkside
OperationDarkside / BlurRenderer.ixx
Created May 6, 2022 15:57
Stronger Blur with Low Res Framebuffer
module;
#include <memory>
#include <array>
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
export module BlurRenderer;