This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
minecraft: | |
container_name: "minecraft" | |
stdin_open: true | |
tty: true | |
image: itzg/minecraft-server | |
ports: | |
- "25565:25565" | |
environment: | |
EULA: "TRUE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
public static class Hook | |
{ | |
public static event Action<uint> OnKeyDown; | |
public static event Action<uint> OnKeyUp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace LibInput | |
{ | |
public static class Input | |
{ | |
public static bool TryGetKeyUp(out KeyCode key) | |
{ | |
key = (KeyCode)0; | |
if (!Event.TryGetEvent(out Event e) || e.Type != EventType.KeyboardKey) { return false; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #define NO_FILES | |
// #define NO_CSS | |
/* or as command line option when compiling '-define:NO_FILES,NO_CSS' */ | |
/* | |
NO_FILES - no config and no style.css files | |
NO_CSS - a config file but not a style.css file | |
the order you call Config.Initialize(ref string[] args): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.o | |
*.obj | |
*.so | |
*.a | |
*.bin | |
*.exe | |
*.dll | |
*.out | |
out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace Gtk | |
{ | |
public static class LayerShell | |
{ | |
[DllImport("gtk-layer-shell")] private static extern uint gtk_layer_get_major_version(); | |
public static uint MajorVersion { get => gtk_layer_get_major_version(); } |