Skip to content

Instantly share code, notes, and snippets.

View TitanX101's full-sized avatar

TitanX101

  • Empress Games
  • 27°59'17"N 86°55'31"E
View GitHub Profile
@peterwzhang
peterwzhang / DI-Corvus-Trivia.md
Last active April 9, 2025 03:09
Diablo Immortal Corvus Trivia Answers

Diablo Immortal Corvus Trivia Answers

This is a collection of the Corvus Expedition Trivia questions seen on the Pandemonium server

  1. Which demon has never been among the three Prime Evils - Azmodan
  2. This angel helped create humanity - Inarius
  3. Alive without breath. Cold as death. Never thirst but always drink. - Fish
  4. The Worldstone is known by each of these names except one - The Crystal Spear
  5. The Lord of Lies, never to be trusted, always in the shadows - Belial
  6. How many Great Evils are there - 7 great evils
  7. The more that are taken, The more left behind - Footsteps
  8. The Lord of Pain and the king of maggots - Duriel
@Refsa
Refsa / BlurEffect.compute
Last active February 17, 2025 22:46
Unity URP custom render feature for UI Blur
#pragma kernel Downscale
#pragma kernel GaussianBlurVertical
#pragma kernel GaussianBlurHorizontal
#pragma kernel BoxBlur
Texture2D<float4> _Source;
RWTexture2D<float4> _Dest;
float _Amount;
float2 _Size;
@JohannesMP
JohannesMP / ExtractMeshToFBX.cs
Last active January 31, 2025 18:28
Using the Unity FBX SDK to save a single Mesh as an FBX. Uses Unity FBX SDK from: https://assetstore.unity.com/packages/essentials/101408
using System.IO;
using UnityEngine;
using UnityEditor;
using Unity.FbxSdk;
using FbxExporters.Editor;
// Place in 'Editor' folder
public static class ExtractMeshToFBX
{
// true: fbx file is easy-to-debug ascii, false: fbx file is binary.
@phi-lira
phi-lira / UniversalPipelineTemplateShader.shader
Last active April 19, 2025 11:49
Template shader to use as guide to create Universal Pipeline ready shaders. This shader works with Universal Render Pipeline 7.1.x and above.
// When creating shaders for Universal Render Pipeline you can you the ShaderGraph which is super AWESOME!
// However, if you want to author shaders in shading language you can use this teamplate as a base.
// Please note, this shader does not necessarily match perfomance of the built-in URP Lit shader.
// This shader works with URP 7.1.x and above
Shader "Universal Render Pipeline/Custom/Physically Based Example"
{
Properties
{
// Specular vs Metallic workflow
[HideInInspector] _WorkflowMode("WorkflowMode", Float) = 1.0
@DashW
DashW / ScreenRecorder.cs
Last active April 3, 2025 13:23
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)
@mattatz
mattatz / TextureAnimation.shader
Last active January 31, 2025 18:26
Texture animation shader for Unity.
Shader "Mattatz/TextureAnimation"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Color", Color) = (1, 1, 1, 1)
_Cols ("Cols Count", Int) = 5
_Rows ("Rows Count", Int) = 3
_Frame ("Per Frame Length", Float) = 0.5
@grimmdev
grimmdev / Translate.cs
Last active January 31, 2025 18:25
Translate method/api using Unity 3D. Completely Free with no Restrictions, by using Google's Internal API, we cut out the need for any api keys.
// We need this for parsing the JSON, unless you use an alternative.
// You will need SimpleJSON if you don't use alternatives.
// It can be gotten hither. http://wiki.unity3d.com/index.php/SimpleJSON
using SimpleJSON;
using UnityEngine;
using System.Collections;
public class Translate : MonoBehaviour {
// Should we debug?
@kimsama
kimsama / Unity-GetAllFilesUnderSelectedFoder.cs
Last active August 22, 2024 06:28
Code snip which shows gather all files under selected folder in Unity's Project View
/// <summary>
/// Retrieves selected folder on Project view.
/// </summary>
/// <returns></returns>
public static string GetSelectedPathOrFallback()
{
string path = "Assets";
foreach (UnityEngine.Object obj in Selection.GetFiltered(typeof(UnityEngine.Object), SelectionMode.Assets))
{
@funnythingz
funnythingz / gist:7508295
Created November 17, 2013 02:24
get pokemon xy sprites script
<?php
for($i = 1; $i <= 718; $i++) {
if($i < 10) {
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/00".$i.".png"."\n");
}elseif($i >= 10 && $i < 100) {
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/0".$i.".png"."\n");
}else{
shell_exec("wget -xP pokemon_xy_imgs/ http://www.pokemontrash.com/pokemon-x-y/images/sprites/".$i.".png"."\n");
}
@jackielii
jackielii / OpenWithSublimeText3.bat
Last active March 18, 2025 17:22 — forked from mrchief/LICENSE.md
Add "Open with Sublime Text 3" to Windows Explorer Context Menu (including folders)
@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f