Skip to content

Instantly share code, notes, and snippets.

View ninpl's full-sized avatar
:octocat:
Albañil de bits ^.^

N9+ ninpl

:octocat:
Albañil de bits ^.^
View GitHub Profile
@ninpl
ninpl / extend-trial-jetbrains-windows.bat
Created April 15, 2024 12:39 — forked from Gkhnzdmr/extend-trial-jetbrains-windows.bat
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@ninpl
ninpl / ScrollRectAutoScroll.cs
Created January 8, 2024 18:28 — forked from spireggs/ScrollRectAutoScroll.cs
Unity3d ScrollRect Auto-Scroll, Dropdown Use: Places this component in the Template of Dropdown (with the ScrollRect component)
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
//comment the next line out if you aren't using Rewired
using Rewired;
[RequireComponent(typeof(ScrollRect))]
public class ScrollRectAutoScroll : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
@ninpl
ninpl / GuardarIdioma.cs
Created June 7, 2021 19:03
Guardar y cargar el idioma sin mantenerlo en cache
// Cargar Idioma
private void LoadLanguage()
{
var savedLanguage = GetSavedLanguage();
if (savedLanguage != Idioma.Desconocido)
{
Localizacion.Instancia.IdiomaActual = savedLanguage;
}
}
@ninpl
ninpl / command
Created August 21, 2020 00:16
Actualiza las miniaturas de windows 10, para el favicon.ico que se queda bloqueado
ie4uinit.exe -show

Keybase proof

I hereby claim:

  • I am moonantonio on github.
  • I am antmoon (https://keybase.io/antmoon) on keybase.
  • I have a public key ASDnZmRZNEu-oJhgsVO0_-11-UbT91JIyAC4C83XJlAF9go

To claim this, I am signing this object:

@ninpl
ninpl / Utilidad.md
Created September 5, 2019 23:35
Encuentra todos los archivos en mi directorio actual, y todos los directorios contenidos en ellos, que son> 100 MB. Concatene esta lista con el archivo .gitignore.

Encuentra todos los archivos en mi directorio actual, y todos los directorios contenidos en ellos, que son> 100 MB. Concatene esta lista con el archivo .gitignore.

Mega

find . -size +100M | cat >> .gitignore

Giga

find . -size +1G | cat >> .gitignore

@ninpl
ninpl / Utilidades.cs
Created May 11, 2019 18:43
Metodo que genera una ruta de directorios pasandole la ruta por texto.
#region
#if UNITY_EDITOR
using UnityEditor;
using System.IO;
#endif
#endregion
namespace AntonioMoon
{
/// <summary>
@ninpl
ninpl / CellShading.shader
Last active March 7, 2023 10:49
Shader Cell - Iluminación personalizada.
Shader "NinePlus/CellShading"
{
Properties
{
_MainTex("Albedo (RGB)", 2D) = "white" {}
_RampTex("Ramp", 2D) = "white" {}
_CelShadingLevels("Cel Shading Levels", Range(0,15)) = 5
}
SubShader
{
@ninpl
ninpl / SoftLambert.shader
Created February 5, 2019 14:42
Shader simple - Ley de Lambert
Shader "Moon Antonio/SoftLambert"
{
Properties
{
_MainTex("Albedo (RGB)", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType" = "Opaque" }
LOD 200
@ninpl
ninpl / PandoraMotorEditor.cs
Created November 29, 2018 13:53
No funcional.
#region Librerias
using Sirenix.OdinInspector.Editor;
using UnityEditor;
using Sirenix.OdinInspector;
using UnityEngine;
using Sirenix.Utilities.Editor;
using Sirenix.OdinInspector.Demos.RPGEditor;
using System.Collections.Generic;
using System.Linq;
using Sirenix.Utilities;