Skip to content

Instantly share code, notes, and snippets.

View LuizMoratelli's full-sized avatar

Luiz Augusto Moratelli LuizMoratelli

View GitHub Profile
@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
@FreyaHolmer
FreyaHolmer / GpuPrinter.cginc
Last active March 16, 2025 05:51
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
// React Native
if (Linking.canOpenURL(myURL)) {
Linking.openURL(myURL);
} else {
// handle app not available
}
@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
@sibelius
sibelius / runJscodeshiftXargs.bash
Created March 13, 2020 14:02
how to run jscodeshift using xargs
find packages/**/src -name '*.tsx' -print | xargs jscodeshift -t ./codemod.js --parser=babel --extensions=tsx
@sma
sma / example.dart
Last active July 12, 2023 03:00
A flutter example demonstrating a custom painter drawing selectable rects
// run in DartPad: <https://dartpad.dev/c6a9111d58c3deb83711106cec6152ee>
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(home: RectsExample()));
}
class RectsExample extends StatefulWidget {
@override
@bradtraversy
bradtraversy / docker-help.md
Last active April 26, 2025 18:27
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@joseluisq
joseluisq / 1README.md
Created April 19, 2017 07:33
How add a custom field to Laravel 5.4 default login. LoginController.php

How add a custom field to Laravel 5.4 default login controller.

In this php example (app/Http/Controllers/Auth/LoginController.php) my model is called Client and the custom field for login validation is status. (Client->status)

Add in your resources/lang/en/auth.php file :

    'failed_status' => 'Your account is inactive yet. Please confirm your e-mail address.',