Skip to content

Instantly share code, notes, and snippets.

View WATERMELOUN3's full-sized avatar
👀
Don't mind me, just looking

WATERMELOUNE WATERMELOUN3

👀
Don't mind me, just looking
View GitHub Profile
@cgbeutler
cgbeutler / CSharpScriptAttribute.cs
Last active June 24, 2022 14:45
Helper for creating custom resources in Godot in C# until bug #38191 is fixed
using System;
using System.Runtime.CompilerServices;
using Godot.Collections;
using Array = Godot.Collections.Array;
/* Example Usage:
// Declare a class with the attribute
[CSharpScript]
public class CustomResource : Resource { ... }
@beci
beci / aur_speed_up.md
Last active June 12, 2024 15:06
Speed up compiling of AUR packages in arch linux

Edit /etc/makepkg.conf

replace in CFLAGS and CXXFLAGS to use the native one

-march=x86-64 -mtune=generic to -march=native

speed up build by set multiple threads

MAKEFLAGS="-j$(nproc)"