history | nl | sed -n '265,275p'
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
/// <summary> | |
/// This is the dependency or subsystem that needs to be initialized before the first scene | |
/// </summary> | |
public interface IInitializable | |
{ | |
bool IsInitialized { get; } | |
bool CanInitializeAsynchronously { get; } | |
void Initialize(); | |
event Action OnInitialized; | |
} |
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
from PIL import Image | |
import os | |
import sys | |
def convert_tif_to_png(src_path, dest_path): | |
if not os.path.exists(dest_path): | |
os.makedirs(dest_path) | |
for root, dirs, files in os.walk(src_path): | |
for file in files: |
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
""" | |
Nested Extension Copier: A Python script to recursively copy files with specified extensions | |
from a source directory to a destination directory. It accepts multiple extensions as command-line | |
arguments, allowing for flexible and targeted file copying. Ideal for organizing files or selective backups. | |
""" | |
import os | |
import shutil | |
import sys | |
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
import os | |
import sys | |
def find_unique_extensions(path): | |
""" | |
Recursively finds and returns a set of unique file extensions in the given directory. | |
:param path: Path of the directory to search in. | |
:return: Set of unique file extensions. | |
""" |
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.Threading; | |
using Cysharp.Threading.Tasks; | |
using UnityEngine; | |
using Awaiter = Cysharp.Threading.Tasks.UniTask.Awaiter; | |
/// <summary> | |
/// Coroutines are great, and if we can fulfill all requirements using them, then good, no need to mess with Tasks! | |
/// |
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
#!/bin/bash | |
# Usage: ./script.sh [file1.aab file2.aab ...] | |
# If no arguments are provided, the script will find and process all .aab files in the current directory. | |
# The script performs the following steps for each .aab file: | |
# 1. Builds an .apks file using bundletool. | |
# 2. Deletes the original .aab file. | |
# 3. Renames the .apks to .zip. | |
# 4. Decompresses the .zip into a new directory. | |
# 5. Deletes the .zip file. |
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.Collections; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
using UnityEngine; | |
using UnityEngine.TestTools; | |
// Namespace should mirror the implementation namespace with a '.Tests' suffix. | |
// If the implementation is under 'MyCompany.FeatureScope', then tests should be 'MyCompany.Tests.FeatureScope'. | |
namespace MyCompany.Tests.FeatureScope | |
{ |
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 UnityEngine; | |
public abstract class Singleton<T> : MonoBehaviour, IDisposable where T : Singleton<T> | |
{ | |
public static T Instance { get; protected set; } | |
void Awake() | |
{ | |
if ( Instance != null && Instance != this ) |
NewerOlder