Skip to content

Instantly share code, notes, and snippets.

View Dssdiego's full-sized avatar
🦄

Diego Santos Seabra Dssdiego

🦄
View GitHub Profile
Author: Nilo Dantas - n1lo
Based on: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/518056 - helio-valente post
How to use Cedilha on US Keyboard on ArchLinux
1) Put: English(US, internacional with dead Keys) on your system keyboard layout.
2) Editing the files:
sudo vim /usr/lib/gtk-3.0/3.0.0/immodules.cache
#### ABERTOS ####
#EXTINF:0 tvg-logo="https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/TV_Senado.svg/1200px-TV_Senado.svg.png" group-title="ABERTOS", TV Senado
http://www.tvmpf.mpf.mp.br:1935/event455/event455.stream_720p/playlist.m3u8
#EXTINF:0 tvg-logo="https://upload.wikimedia.org/wikipedia/pt/2/22/Logotipo_da_Rede_Globo.png" group-title="ABERTOS", GLOBO MINAS
http://cdn.poptv.vip:80/daniel/daniel/7877
#### VARIEDADES ####
@Dssdiego
Dssdiego / _tcc.csv
Last active July 7, 2020 18:32
CSV's utilizados no meu TCC. Disponível em https://tcc-dseabra.herokuapp.com
Type Author Teacher
TCC Diego S. Seabra Josiane C. V. Rezende
@Dssdiego
Dssdiego / GameTheme.cs
Last active May 1, 2020 17:49
Simple Save System for Themes in Unity
using UnityEngine;
[CreateAssetMenu(menuName = "Settings/Theme")]
public class GameTheme : ScriptableObject
{
public Color foregroundColor;
public Color backgroundColor;
}
@Dssdiego
Dssdiego / AppVersion.cs
Last active April 28, 2020 08:54
Keeps the PlayerSettings info of the Unity Project in a separate data asset
using UnityEngine;
[CreateAssetMenu (menuName = "App Version")]
public sealed class AppVersion : ScriptableObject
{
/// <summary>
/// Game Name
/// </summary>
[Header("Settings")]
[SerializeField] private string gameName;
using UnityEngine;
namespace Architecture
{
public class IntLogger : MonoBehaviour
{
public IntVariable variable;
public string textBeforeVariable;
public string textAfterVariable;
using TMPro;
using UnityEngine;
namespace Architecture
{
[RequireComponent(typeof(TextMeshProUGUI))]
public class TextIntSetter : MonoBehaviour
{
private TextMeshProUGUI textUI;
public IntVariable variable;
@Dssdiego
Dssdiego / ImageFillSetter.cs
Last active April 28, 2020 08:50
Unity Image Fill Setter
public class ImageFillSetter : MonoBehaviour {
public FloatReference Variable;
public FloatReference Max;
public Image image;
private void Update() {
Image.fillAmount = Mathf.Clamp(Variable.Value / Max.Value);
}
}
@Dssdiego
Dssdiego / FloatVariable.cs
Last active April 28, 2020 08:52
Unity Float Variable according to [Best Practices](https://unity.com/how-to/architect-game-code-scriptable-objects)
using UnityEngine;
using UnityEngine.Events;
[CreateAssetMenu(menuName = "Variable/Float")]
public class FloatVariable : ScriptableObject
{
#if UNITY_EDITOR
[Multiline]
public string description;
#endif
@Dssdiego
Dssdiego / IntVariable.cs
Last active April 28, 2020 08:46
Unity Int Variable according to [Best Practices](https://unity.com/how-to/architect-game-code-scriptable-objects)
using UnityEngine;
using UnityEngine.Events;
[CreateAssetMenu(menuName = "Variable/Int")]
public class IntVariable : ScriptableObject
{
#if UNITY_EDITOR
[Multiline]
public string description;
#endif