Skip to content

Instantly share code, notes, and snippets.

View lewiji's full-sized avatar
😸

Lewis James lewiji

😸
View GitHub Profile
public static class ResourceQueue
{
public static async Task<T> Load<T>(string path, [CanBeNull] Delegates.ReportProgress reportProgress = null)
where T : Resource
{
if (ResourceLoader.HasCached(path))
{
GD.Print("Is in cache: " + path);
return ResourceLoader.Load<T>(path);
}
@aaronfranke
aaronfranke / convert-to-godot4.sh
Last active April 2, 2024 16:20
This script bulk-renames many things in Godot 3 projects to hopefully make it easier to convert them to Godot 4.
#!/usr/bin/env bash
# This script bulk-renames many things in Godot 3 projects to hopefully
# make it easier to convert them to Godot 4. The goal is to do as much
# replacing as possible here so that the diffs Godot produces are smaller.
set -uo pipefail
IFS=$'\n\t'
# Loops through all text files tracked by Git.
@eelstork
eelstork / Duelist.cs
Created August 30, 2019 09:27
A code snippet demonstrating the Active Logic Library
using UnityEngine;
using Active.Core;
using static Active.Core.status;
using Auto = System.Runtime.CompilerServices.CallerMemberNameAttribute;
public class Duelist : UTask{
const string WALK = "Walk", RUN = "Run", IDLE = "Idle";
const float rotationalSpeed = 180;
//
public string targetName;
@davispuh
davispuh / steam_console_params.txt
Last active June 30, 2024 14:31
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active July 4, 2024 13:00
Backend Architectures Keywords and References
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active June 13, 2024 10:59
A badass list of frontend development resources I collected over time.
@feedmypixel
feedmypixel / xmlToJson
Created November 27, 2012 10:41
Convert XML to JSON. This is a version that provides a JSON object without the attributes and places textNodes as values rather than an object with the textNode in it.
/**
* Originally from http://davidwalsh.name/convert-xml-json
* This is a version that provides a JSON object without the attributes and places textNodes as values
* rather than an object with the textNode in it.
* 27/11/2012
* Ben Chidgey
*
* @param xml
* @return {*}
*/