Skip to content

Instantly share code, notes, and snippets.

diff --git src/Corrade/Utility/Move.h src/Corrade/Utility/Move.h
index e0713b74..edfa9432 100644
--- src/Corrade/Utility/Move.h
+++ src/Corrade/Utility/Move.h
@@ -53,7 +53,11 @@ is used to implement perfect forwarding, but without the
even in C++11.
@see @ref move(), @ref swap()
*/
-template<class T> constexpr T&& forward(typename std::remove_reference<T>::type& t) noexcept {
+template<class T>
@sthalik
sthalik / element-fix.pl
Created January 17, 2024 11:49
Element patch script to remove idiotic oversized padding in the UI
#!/usr/bin/env perl
use strict;
use warnings;
use POSIX;
use File::Find;
use File::Basename;
use v5.8;
our $fix = <<END;
@sthalik
sthalik / underrail.ct
Created December 21, 2023 19:08
underrail merchant refresh table
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="45">
<CheatEntries>
<CheatEntry>
<ID>2039</ID>
<Description>"UnderRail AOB script; CharGen only"</Description>
<Options moHideChildren="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript Async="1">// Game : underrail.exe
// Version:
@sthalik
sthalik / foo.html
Created December 19, 2023 15:26
spotify embed
<iframe style="border-radius:12px" src="https://open.spotify.com/embed/track/0a0lzFBexXxNtAADhL96cb?utm_source=generator" width="100%" height="352" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
@sthalik
sthalik / PKGBUILD
Created December 10, 2023 12:39
gcc 14.0 snapshot msys2 PKGBUILD
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
# Contributor: Alexey Borzenkov <snaury@gmail.com>
# Contributor: Ray Donnelly <mingw.android@gmail.com>
# Contributor: Renato Silva <br.renatosilva@gmail.com>
# Contributor: wirx6 <wirx654@gmail.com>
# Contributor: Kirill Müller <krlmlr@mailbox.org>
_enable_ada=no
_enable_objc=no
_enable_rust=no
/* start */
.mx_SpacePanel {
display: none !important;
}
.mx_RoomView_MessageList {
padding-left: 6px !important;
padding-right: 6px !important;
}
.mx_RoomView_MessageList .mx_EventTile_line {
#ifdef _WIN32
#include <windows.h>
#ifdef _MSC_VER
#pragma comment(lib, "ntdll.lib")
#endif
extern "C" __declspec(dllimport) long WINAPI RtlGetVersion (PRTL_OSVERSIONINFOEXW);
static bool check_windows_build_number(unsigned major, unsigned minor, unsigned build)
{
#include <type_traits>
namespace detail { template<typename To, typename From> struct Converter {}; }
struct Foo {
float x = 0, y = 0, z = 0, w = 0;
explicit constexpr Foo() noexcept = default;
explicit constexpr Foo(float x, float y, float z, float w) noexcept : x{x}, y{y}, z{z}, w{w} {}
explicit constexpr Foo(const Foo&) noexcept = default;
#ifdef _MSC_VER
#define CORRADE_CXX_STANDARD _MSVC_LANG
#else
#define CORRADE_CXX_STANDARD __cplusplus
#endif
#if defined(__clang__) && __clang_major__ >= 9 || defined(__GNUG__) && __GNUG__ >= 9 || defined(_MSC_VER) && _MSC_VER >= 1931
#define CORRADE_CONSTEVAL (__builtin_is_constant_evaluated())
#elif CORRADE_CXX_STANDARD >= 202002L
#define CORRADE_CONSTEVAL (std::is_constant_evaluated()) /*include type_traits*/
/* ==UserStyle==
@name doc.magnum.graphics - 10/1/2022, 2:07:33 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document domain("doc.magnum.graphics") {
/* even wider on 4K screens */
@media screen and (min-width: 1700px) {