Skip to content

Instantly share code, notes, and snippets.

View jv-amorim's full-sized avatar
🙂
It's all good, man.

João Vitor Amorim jv-amorim

🙂
It's all good, man.
View GitHub Profile
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@staltz
staltz / introrx.md
Last active June 26, 2024 10:24
The introduction to Reactive Programming you've been missing
@greatb
greatb / cookie.service.ts
Last active April 14, 2023 17:17
Injectable CookieService class for Angular2
using UnityEngine;
using UnityEngine.EventSystems;
public class UIZoomImage : MonoBehaviour, IScrollHandler
{
private Vector3 initialScale;
[SerializeField]
private float zoomSpeed = 0.1f;
[SerializeField]
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active June 27, 2024 11:33
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@peted70
peted70 / TMP_SDF-MobileInstanced.shader
Created March 14, 2019 10:05
TextMeshPro Shader updated to work with Single pass stereo rendering in Unity
// Simplified SDF shader:
// - No Shading Option (bevel / bump / env map)
// - No Glow Option
// - Softness is applied on both side of the outline
Shader "TextMeshPro/Mobile/Distance Field Instanced" {
Properties {
_FaceColor ("Face Color", Color) = (1,1,1,1)
_FaceDilate ("Face Dilate", Range(-1,1)) = 0
@toricls
toricls / Time-based-auto-scaling-on-fargate.md
Created August 5, 2019 01:49
Example: Time-based Auto Scaling on Amazon ECS + AWS Fargate

Set parameters

$ export ECS_CLUSTER_NAME={YOUR_ECS_CLUSTER_NAME}
$ export ECS_SERVICE_NAME={YOUR_ECS_SERVICE_NAME}

RegisterScalableTarget

@jv-amorim
jv-amorim / Desenvolvimento utilizando Node, React e React Native.md
Last active April 26, 2020 15:25
Notas sobre a criação de projetos fullstack utilizando Node.js, React e React Native.

Notas sobre a criação de projetos fullstack utilizando Node.js, React e React Native

BACK-END (NODE.JS):

Rotas e recursos:

@jv-amorim
jv-amorim / Blockchain.md
Last active April 26, 2020 20:35
These notes are about my that is on Github.

📌️ Blockchain in C# - Basic Concepts

Content:

  • Private Key;
  • Public Key;
  • Networks;
  • PubKey hash;
@jv-amorim
jv-amorim / C# Collections Notes.md
Last active April 26, 2020 16:51
Notes about C# Collections.

📌️ C# Collections Notes

📄️ Lists:

✅️ The FindIndex() method can receive a lambda function as an argument and, thus, it's possible find the first unknown element that meets a desired requirement, present in the lambda function. Example: int brazilIndex = countries.FindIndex(x => x.Population < 220_000_000);

✅️ The Insert() method allows the insertion of an element after a desired index in the list. Example: