Skip to content

Instantly share code, notes, and snippets.

View kelteseth's full-sized avatar

Elias Steurer kelteseth

View GitHub Profile
@fizzyade
fizzyade / deploy.py
Last active September 26, 2020 17:07
Python script to automate deployment of a Qt based application as a macOS DMG, Windows Installer and Linux AppImage
#!/usr/bin/env python3
#
# Copyright (C) 2019 Adrian Carpenter
#
# Multiplatform Qt Deployment Tool
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@ddevault
ddevault / Makefile
Last active February 20, 2024 14:17
Tiny Wayland compositor
WAYLAND_PROTOCOLS=/usr/share/wayland-protocols
# wayland-scanner is a tool which generates C headers and rigging for Wayland
# protocols, which are specified in XML. wlroots requires you to rig these up
# to your build system yourself and provide them in the include path.
xdg-shell-protocol.h:
wayland-scanner server-header \
$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
xdg-shell-protocol.c: xdg-shell-protocol.h
@micjabbour
micjabbour / datastream_enum.h
Last active February 24, 2023 11:27
(de)serialize enums into QDataStream
#ifndef DATASTREAM_ENUM_H
#define DATASTREAM_ENUM_H
#include <type_traits>
//a function that can serialize any enum into QDataStream
//it stores the enum in a qint64
template<typename Enum,
typename = typename std::enable_if<std::is_enum<Enum>::value>::type>
#include <Windows.h>
#include "../../API/RainmeterAPI.h"
struct ACCENTPOLICY {
int nAccentState;
int nFlags;
int nColor;
int nAnimationId;
};
struct WINCOMPATTRDATA {