Skip to content

Instantly share code, notes, and snippets.

@gostrafx
gostrafx / FolderTypeFix.reg
Created September 10, 2024 02:00 — forked from unitycoder/FolderTypeFix.reg
Make Windows Folder Browsing Faster (by disabling folder type detection)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
@adammyhre
adammyhre / ProjectSetup.cs
Last active June 9, 2025 06:36
Automated Unity Project Setup Script
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using UnityEditor;
using UnityEditor.PackageManager;
using UnityEditor.PackageManager.Requests;
using UnityEngine;
using static System.Environment;
@shingming
shingming / SaveImage2AndroidGallery.cs
Last active March 29, 2024 11:52
Unity3D: Save Image to Android Gallery (Test on API level 28 - 33)
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SaveImage2AndroidGallery
{
/// <summary>
/// Save the image byte data to the Android gallery.
@Grafikart
Grafikart / jsr.js
Created August 24, 2023 08:38
jetsetradio.live downloader (nodejs)
import {chromium, devices} from 'playwright';
import ora from 'ora';
import inquirer from 'inquirer'
import {createWriteStream} from 'node:fs'
import {mkdir} from 'node:fs/promises'
import {get} from 'node:https'
/**
* Download music from jetsetradio.live
*
@ohsevin
ohsevin / awesome-re-piracy-mega-list.md
Created May 15, 2023 03:14
awesome.re piracy mega list (archived) for safe keeping!
@mvyasu
mvyasu / ProximityPromptHighlight.lua
Last active May 31, 2025 09:52
A very simple script that highlights objects with ProximityPrompts inside them.
--by @mvyasu
--June 2 2022
local ProximityPromptService = game:GetService("ProximityPromptService")
local Players = game:GetService("Players")
local highlightLookupDictionary = {}
ProximityPromptService.PromptShown:Connect(function(promptInstance)
if not highlightLookupDictionary[promptInstance] then
@yasirkula
yasirkula / PaddingIgnoringImage.cs
Last active October 17, 2024 03:00
Modified version of Image component that ignores the sprite's padding in Unity
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Sprites;
using UnityEngine.UI;
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER
using UnityEngine.U2D;
#endif
#if UNITY_EDITOR
using UnityEditor;
@druggedhippo
druggedhippo / NavMeshGenA.cs
Last active December 3, 2024 19:53
Unity Navigation mesh by terrain texture
/****
NOTE NOTE NOTE
1. Add this component to a terrain
2. Set your area ID's to be what you want the agent to think each surface in your terrain is (eg, Grass, Path), in the same order as the textures assigned in the terrain textures
3. Set "Defaultarea" to be whatever texture you expect to be the "most" common terrain texture. Generall this will be the first texture you assigned in step 1, eg "Grass"
IF THIS IS STILL TO SLOW:
# To run this script make a directory called elasticsearch for your data.
# Note that this script won't work if your data is too big for local disk.
import pickle
from elasticsearch import Elasticsearch
### CHANGE THESE CONSTANTS TO MATCH THE ELASTICSEARCH CLUSTER YOU'RE MIGRATING FROM ###
ES_HOST = "example.elasticsearch.url.com"
ES_PORT = 9200
ES_INDEX = "my_index_name"