Skip to content

Instantly share code, notes, and snippets.

@WolfgangSenff
WolfgangSenff / gist:168cb0cbd486c8c9cd507f232165b976
Last active May 22, 2024 18:55
Godot 4.0 Migration/Upgrade guide
## For a beginner-friendly version of the following (more advanced users likely will get better use of the below,
## if you're just starting out...), see this new gist:
## https://gist.github.com/WolfgangSenff/0a9c1d800db42a9a9441b2d0288ed0fd
This document represents the beginning of an upgrade or migration document for GDScript 2.0 and Godot 4.0. I'm focusing on 2D
at the moment as I'm upgrading a 2D game, but will hopefully have more to add for 3D afterward.
## If you want more content like this, please help fund my cat's medical bills at https://ko-fi.com/kyleszklenski - thank you very much! On to the migration guide.
@willnationsdev
willnationsdev / LootTable.gd
Last active September 5, 2020 15:57
Have a LootTable resource that exports an Array of LootElement script instances
tool
class_name LootTable
extends Resource
export var _element_type: Script = null setget set_element_type
export var data := [] setget set_data
func set_data(p_value: Array) -> void:
# Validate element types.
# Only necessary because Godot doesn't yet have typed Arrays
# or exportable user-defined Resource types. Hopefully coming for 4.0.
for i in len(p_value):

1 - Install imagemagick

  • Mac: brew install imagemagick
  • Ubuntu Linux: Follow this guide
  • If you are on windows, these instructions should work on WSL (windows subsystem for linux)

Updated Script

1- Save the following script as split-icons.sh

@FFouetil
FFouetil / EnumFlagAttribute.cs
Last active February 10, 2021 02:16 — forked from ChemiKhazi/EnumFlagAttribute.cs
Unity3d property drawer for automatically making enums flags into mask fields in the inspector.
using UnityEngine;
public class EnumFlagAttribute : PropertyAttribute
{
public string enumName;
public EnumFlagAttribute() {}
public EnumFlagAttribute(string name)
{
@jchandra74
jchandra74 / PowerShell Customization.md
Last active March 1, 2024 01:02
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@attacus
attacus / riot-matrix-workshop.md
Last active March 13, 2024 00:16
Create your own encrypted chat server with Riot and Matrix

This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

@rakkarage
rakkarage / cloudSettings
Last active December 2, 2019 22:50
Visual Studio Code Sync Settings Gist
{"lastUpload":"2019-12-02T22:50:44.036Z","extensionVersion":"v3.4.3"}

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@randomchance
randomchance / prompt.ps1
Last active April 6, 2020 08:03 — forked from kadet1090/prompt.ps1
PowerLine like prompt for PowerShell
$script:bg = [Console]::BackgroundColor;
$script:first = $true;
$script:last = 0;
Import-Module Posh-Git
$BranchBehindAndAheadStatusForegroundColor = [System.ConsoleColor]::Magenta
$BranchBehindStatusForegroundColor = [System.ConsoleColor]::Yellow
$BranchAheadStatusForegroundColor = [System.ConsoleColor]::Green
$BranchIdenticalStatusToForegroundColor = [System.ConsoleColor]::White
$workingAdded = '+'
@guardrex
guardrex / tasks.json
Last active April 29, 2019 10:54
VS Code Tasks file to work with dotnet cli
{
"version": "0.1.0",
"command": "cmd",
"isShellCommand": true,
"showOutput": "silent",
"args": [
"/c"
],
"tasks": [
{