From d96360405ee2169ba7495c7946489231bebb8f88 Mon Sep 17 00:00:00 2001 From: alan Date: Tue, 16 Apr 2024 14:05:03 -0400 Subject: [PATCH] Initial commit for Fractal 2024 sanity checks --- .gitignore | 1 + input/fractal/project_list.csv | 66 ++++++++++++++++++++++++++++++++++ main.js | 31 ++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 .gitignore create mode 100644 input/fractal/project_list.csv create mode 100644 main.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80dbe0a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +input/fractal/categories/ \ No newline at end of file diff --git a/input/fractal/project_list.csv b/input/fractal/project_list.csv new file mode 100644 index 0000000..ef056f8 --- /dev/null +++ b/input/fractal/project_list.csv @@ -0,0 +1,66 @@ +Midnight Convenience Store +Temple in the Forest +Anime Arts (Original Fan Arts and Original Designs) +Cosmo the AstroCat +Project Astro +Wooden Block Castle +Witches Brew +Make-Believe Bulletin +City Blast +Arcane Assembly +Stranger +EV Charging Issues and Solutions +48 Hour Animation Challenge - Presentation Day +Photogrammetry to Game Asset Wrench +Office +Neutron Detection Virtual Lab +Antifragile +28 Reasons +Glitch Mode +Relax +Pride in the Pages +Medieval Village +MMXXIII +H-Town +Leif's World +Bonsai +Cozy Home +REFILLS:0 +Overpainting +Calla +Armazon +24 Hour Animation Challenge - "Hooked" +Lifelike Armor Model +Shark Jump +Official Australia Teaser +Vezu -- the Red Dragon +Écorché +Concert Hall +Mechanical Spider +Mobius: Clover +Half-cyborg character model +A Walk +Desert Roaming Crab Mount +The Skylight | Modded Terraria Weapon +Burning Jealousy | Modded Terraria Weapon +Mr. Cyber Rail vs. Mort +Messages From the Universe Graveyard +Chinese Living Room +Cyvercry's Ultra Blade Attack | Modded Terraria VFX +Swept Hilt Rapier +The Death of Me +Hook, Line and Axe +You're Late! +BoilerNav - Accessible Campus Router +Cheeky Figurine Product Showcase +Asimov +Alligator +Fire Rescue Robot +Squash & Stretch +Colt Detective Special Bake +Dungeons and Doors +Concert +Furries +Grave Appetite +Firearm concepts +Revolver \ No newline at end of file diff --git a/main.js b/main.js new file mode 100644 index 0000000..0cda170 --- /dev/null +++ b/main.js @@ -0,0 +1,31 @@ +const fs = require('fs'); + +const project_list = fs.readFileSync('input/project_list.csv', 'utf8').split('\n'); +const project_used = []; + +const categories = [ +"2d_anim", "3d_anim", "3d_asset", "film_video", "games", "illustration", "vfx" +]; + +project_list.forEach(() => { + project_used.push(false); +}) +categories.forEach((category) => { + const file = fs.readFileSync(`input/categories/${category}.csv`, 'utf8').replace("\"\"", "\""); + project_list.forEach((val, idx) => { + if (file.includes(val)) { + project_used[idx] = true; + } + }) +}) + + +let unused_project_count = 0; +for (let i = 0; i < project_used.length; i++) { + if (!project_used[i]) { + unused_project_count++; + console.log("UNUSED: ", project_list[i]); + } +} + +console.log("There are ", unused_project_count, " unused projects total");