Skip to content

Instantly share code, notes, and snippets.

View thiago-rezende's full-sized avatar
🎮

Thiago Rezende thiago-rezende

🎮
View GitHub Profile
@thiago-rezende
thiago-rezende / init.lua
Last active August 18, 2024 22:19
Simple NeoVim config
--
-- ██░ ██ ▒█████ ██▀███ █ ██ ██████
-- ▓██░ ██▒▒██▒ ██▒▓██ ▒ ██▒ ██ ▓██▒▒██ ▒
-- ▒██▀▀██░▒██░ ██▒▓██ ░▄█ ▒▓██ ▒██░░ ▓██▄
-- ░▓█ ░██ ▒██ ██░▒██▀▀█▄ ▓▓█ ░██░ ▒ ██▒
-- ░▓█▒░██▓░ ████▓▒░░██▓ ▒██▒▒▒█████▓ ▒██████▒▒
-- ▒ ░░▒░▒░ ▒░▒░▒░ ░ ▒▓ ░▒▓░░▒▓▒ ▒ ▒ ▒ ▒▓▒ ▒ ░
-- ▒ ░▒░ ░ ░ ▒ ▒░ ░▒ ░ ▒░░░▒░ ░ ░ ░ ░▒ ░ ░
-- ░ ░░ ░░ ░ ░ ▒ ░░ ░ ░░░ ░ ░ ░ ░ ░
-- ░ ░ ░ ░ ░ ░ ░ ░
/**
* @file windows.h
* @brief Clean inclusion of the Windows.h header
*
*/
#pragma once
/* Target Windows 10 or later */
#define WINVER 0x0A00
@thiago-rezende
thiago-rezende / platform-detection.h
Last active April 20, 2024 17:55
Platform detection macros for C/C++
#pragma once
/* check for emscripten */
#if defined(__EMSCRIPTEN__)
#define HORUS_PLATFORM_EMSCRIPTEN
#error "[ platform ]: emscripten platform is not supported!"
/* check for windows platform */
#elif defined(_WIN32)
@thiago-rezende
thiago-rezende / types.h
Last active August 15, 2025 19:48
Short type naming and useful memory size macros for C/C++
/**
* @file types.h
* @brief Short type naming and useful memory size macros
*
*/
#include <stdint.h>
/* signed types */
typedef int8_t i8;
@thiago-rezende
thiago-rezende / console.h
Created February 21, 2021 05:19
Function to allocate a console and redirect in/out streams to it on Windows
/**
* @file console.h
* @brief This file provide a function to create a console on windows
*
*/
#pragma once
/* Clean Windows Include */
#define VC_EXTRALEAN
@thiago-rezende
thiago-rezende / gettext_helpers.cmake
Last active May 19, 2021 06:49
Helper function for creating automated gettext targets in cmake based projects
## Gettetxt helper function for cmake
## Usage:
# add_gettext_domain(
# DOMAIN <domain-name>
# TARGET_NAME <target-name>
# SOURCES <file> ...
# POTFILE_DESTINATION <dir>
# POFILE_DESTINATION <dir>
# MOFILE_DESTINATION <dir>
@thiago-rezende
thiago-rezende / instrumentor.h
Last active November 2, 2023 07:48
Simple C++ Instrumentation Utility
/**
* @file instrumentor.h
* @brief Simple Instrumentor for Profiling
* @version 1.0
*
* This profiler will generate a json file that can be visualized with the chromium tracer
*/
/* Example Usage */
/* Tailwindcss Colors */
:root {
/* Black */
--black: #000000;
/* White */
--white: #ffffff;
@thiago-rezende
thiago-rezende / kbdv-int.klc
Last active February 28, 2022 03:06
Dvorak International with Dead Keys - Windows
KBD kbdv-int "United States - Dvorak International"
COPYRIGHT "(c) 2020 Thiago Rezende"
COMPANY "Horus Software"
LOCALENAME "en-US"
LOCALEID "00000409"
#!/bin/sh
###########################
# Time Zone Selection #
# Dependencies: #
# - dialog #
# Folder Structure: #
# ├── TZ #
# │   ├── America #
# │   ├── Europe #