Skip to content

Instantly share code, notes, and snippets.

View JesseTG's full-sized avatar
💯
Certified authentic.

Jesse Talavera JesseTG

💯
Certified authentic.
View GitHub Profile
@lordlycastle
lordlycastle / JsonSerializationTester.cs
Last active February 2, 2024 17:36
Inspector window that can be used to test/see JSON deserialization. Requires [Odin](https://odininspector.com/). Get JSON Formatter from here: https://gist.github.com/lordlycastle/755a9d4e34600bc881fe70d3201e516e
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using UnityEditor;
using UnityEngine;
@aholkner
aholkner / SceneViewUIOverlay.cs
Last active August 11, 2022 06:29
Unity editor extension to display a zoom indicator over the 2D scene view. Click it to reset to 100% zoom.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System;
// Display a zoom indicator overlay on the 2D scene view. Click it to reset to 100% zoom
[InitializeOnLoad]
public static class SceneViewUIOverlay
{
@ArztSamuel
ArztSamuel / PostProcessAssets.cs
Last active June 8, 2020 23:26
Using Roslyn Analyzers in combination with Unity
// Put this file inside Assets/Editor/
// This script generates the appropriate .csproj and csc.rsp files in order to
// also include your Roslyn Analyzers in the Visual Studio Project
using System.IO;
using System.Text;
using UnityEditor;
using UnityEngine;
using System;
using System.ComponentModel;
using System.IO;
using System.Net;
using UnityEditor;
using UnityEngine;
public sealed class FileDownloadWindow : EditorWindow
{
private string m_address ;
@fnky
fnky / ANSI.md
Last active May 24, 2024 18:11
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@c0ffeeartc
c0ffeeartc / DestroyWith.cs
Last active January 17, 2021 17:24
EventDriven/SystemLess DestroyWith feature for Entitas ECS framework
using System;
using Entitas;
using Entitas.CodeGeneration.Attributes;
[Context( Ids.Game )]
[Context(Ids.GameState)] // second context to force generation of EntityApiInterface
public class DestroyWith_Emit : IComponent
{
public Int32 Value;
}
//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
@dimaryaz
dimaryaz / dropbox_ext4.c
Created August 15, 2018 07:28
Dropbox ext4 hack
/*
* dropbox_ext4.c
*
* Compile like this:
* gcc -shared -fPIC -ldl -o libdropbox_ext4.so dropbox_ext4.c
*
* Run Dropbox like this:
* LD_PRELOAD=./libdropbox_ext4.so ~/.dropbox-dist/dropboxd
*/
@JohannesMP
JohannesMP / LICENSE
Last active March 9, 2024 11:26
[Unity3D] A Reliable, user-friendly way to reference SceneAssets by script.
/*******************************************************************************
* Don't Be a Jerk: The Open Source Software License.
* Adapted from: https://github.com/evantahler/Dont-be-a-Jerk
*******************************************************************************
* _I_ am the software author - JohannesMP on Github.
* _You_ are the user of this software. You might be a _we_, and that's OK!
*
* This is free, open source software. I will never charge you to use,
* license, or obtain this software. Doing so would make me a jerk.
*