Skip to content

Instantly share code, notes, and snippets.

View Structed's full-sized avatar
🎮

Johannes Ebner Structed

🎮
View GitHub Profile
@Structed
Structed / ScreenAnchor.gd
Created October 11, 2023 21:28
Godot ScreenAnchor
# ScreenAnchor as tweeted by @the_duriel: https://x.com/the_duriel/status/1712183527477809452?s=20
@tool
extends MarginContainer
class_name ScreenAnchor
## Control which can be anchored to a relative screen position
@export var offset: Vector2 = Vector2(0.5, 0.5):
set(value): offset = value; _update_position()
enum ORIGIN {CENTER, TOP_LEFT, TOP_RIGHT, BOT_LEFT, BOT_RIGHT}
@Structed
Structed / Main.gd
Created December 28, 2022 19:45
Godot Engine reproduction for str2var/var2str with multi-dimensional objects
extends Control
func _on_Var2TextButton_pressed():
var test = {
"level": "one",
"second": {
"level": "two"
}
}
@Structed
Structed / Build.cs
Created September 21, 2022 08:45
Example Nuke Build.cs
using System.IO;
using Nuke.Common;
using Nuke.Common.CI.GitHubActions;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Utilities.Collections;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Common.IO.FileSystemTasks;
@Structed
Structed / vscode-camel-humps.md
Last active April 16, 2022 21:00
Set up "JetBrains-stlye" keyboard shortcuts to navigate camel humps

Setting "JetBrains-sytle" keyboard shortcuts for camel-hump navigation

Based on this article by Damir Ahr.

  1. Open %APPDATA%\Code\User\keybindings.json
  2. Paste the following definition (or append teh arry, if you have existing shortcuts)
[
  {
@Structed
Structed / alcaramba-dev-log.md
Created January 8, 2022 01:11
Alcaramba Dev Log

‎‎​

@Structed
Structed / service-principal.md
Created November 16, 2021 07:28
Service Principal cheat sheet

az ad sp create-for-rbac -n "PlayFabMatchHistoryExtension" --role contributor --scopes /subscriptions/75642a6e-c9cc-47f4-80f7-7e13e9c9b924/resourceGroups/pfmatchhistory-rg --sdk-auth

@Structed
Structed / inputs.tf
Last active June 25, 2021 15:00
TerraformExample
variable "location" {
type = string
description = "The location in which to create all resources"
default = "westeurope"
}
variable "prefix" {
type = string
description = "Resource Name prefix (will be applied to all resource names except the resource group"
default = "gamezure"
@Structed
Structed / settings.json
Created July 31, 2020 13:53
My WindowsTerminal Settings
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
@Structed
Structed / Program.cs
Created July 10, 2020 14:03
Azure PlayFab demo Client to show login
using PlayFab;
using PlayFab.ClientModels;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace GameCli
{
class Program
{

Keybase proof

I hereby claim:

  • I am structed on github.
  • I am structed (https://keybase.io/structed) on keybase.
  • I have a public key ASB8vg9IM5SxNQ-knJx2VYvYabwvg4P9JP4MwWFXuU-5kwo

To claim this, I am signing this object: