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
const { readdir, stat } = require("node:fs/promises"); | |
const { join } = require("node:path"); | |
async function* getFiles(directory = '.') { | |
for (const file of await readdir(directory)) { | |
const fullPath = join(directory, file); | |
const stats = await stat(fullPath); | |
if (stats.isDirectory()) { | |
yield* getFiles(fullPath); |
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
#!/usr/bin/env node | |
import fetch from "node-fetch"; | |
import fs from "fs"; | |
import path from "path"; | |
/** | |
* Get and write file to local | |
* @param {string} url path of file | |
* @param {string} file file name | |
* @param {string} target the path for saving 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 Unity.Mathematics; | |
using Unity.Profiling; | |
using UnityEngine; | |
using UnityEngine.UI; | |
namespace Utilities | |
{ | |
public class FPSCounter : MonoBehaviour | |
{ | |
private const float MemoryDivider = 1048576; |
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.Generic; | |
using System.Runtime.InteropServices; | |
using Unity.Burst; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using Unity.Jobs; | |
// ReSharper disable InconsistentNaming | |
namespace Utilities |
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.Runtime.InteropServices; | |
using Unity.Burst; | |
using Unity.Collections; | |
using Unity.Jobs; | |
using UnityEngine; | |
namespace TestSharedStatic | |
{ | |
public unsafe struct FixedArray<T> where T : unmanaged |