Skip to content

Instantly share code, notes, and snippets.

View LuizMoratelli's full-sized avatar

Luiz Augusto Moratelli LuizMoratelli

View GitHub Profile
@guiseek
guiseek / confirm.decorator.ts
Created March 9, 2021 00:27
Decorators / Tweet 3 / 08/03/2021
/**
* Confirm Action
*
* Keep it Simple Sir
*
* @param message
*/
export function Confirm(message: string) {
/**
* @param target é a classe, no nosso claso o componente ListaComponent
// React Native
if (Linking.canOpenURL(myURL)) {
Linking.openURL(myURL);
} else {
// handle app not available
}
@FreyaHolmer
FreyaHolmer / GpuPrinter.cginc
Last active May 24, 2025 08:58
A unity shader .cginc to draw numbers in the fragment shader - see the first comment below for example usage!
///////////////////////////////////////////////////////////////////////////////
// ABOUT: A unity Shader .cginc to draw numbers in the fragment shader
// AUTHOR: Freya Holmér
// LICENSE: Use for whatever, commercial or otherwise!
// Don't hold me liable for issues though
// But pls credit me if it works super well <3
// LIMITATIONS: There's some precision loss beyond 3 decimal places
// CONTRIBUTORS: yes please! if you know a more precise way to get
// decimal digits then pls lemme know!
// GetDecimalSymbolAt() could use some more love/precision
@PaulLowenstrom
PaulLowenstrom / PixelLabRotate.cs
Created December 10, 2024 18:21
Rotate pixel art using PixelLabs AI models
using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine.Networking;
using System.IO;
// Get an api key at https://www.pixellab.ai/pixellab-api
// Documentation for curl and example code: https://api.pixellab.ai/v1/docs