Skip to content

Instantly share code, notes, and snippets.

View blackbone's full-sized avatar
:shipit:
shipit

Dmytro blackbone

:shipit:
shipit
View GitHub Profile
@blackbone
blackbone / RemoteFileSync.cs
Created February 19, 2026 23:45
Remote File Sync
// =====
// MIT © 2026 blackbone
// =====
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UIElements;
@blackbone
blackbone / ScriptableConfig.cs
Created February 9, 2026 12:51
Scriptable Singleton in a correct way
using System;
using System.Linq;
using UnityEngine;
public class ScriptableConfig<T> : ScriptableObject where T : ScriptableConfig<T>
{
private static T _instance;
public static T Instance

Template for parallel jobs

Prepare Job

Does some stuff and need to produce one or multiple txt files for matrix cases

At the end of job such files are processed and composed to proper matrix output in json format

Run Job

@blackbone
blackbone / LoopExtension.cs
Last active August 1, 2023 17:47
Fixed time step loop which gives millisecond precision.
/*
MIT License
Copyright (c) 2023 Dmytro Osipov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is