Skip to content

Instantly share code, notes, and snippets.

View giacomelli's full-sized avatar
🎮
gamedev

Diego Giacomelli giacomelli

🎮
gamedev
View GitHub Profile
@giacomelli
giacomelli / azure-pipelines.yml
Last active December 17, 2019 12:12
Azure Pipelines - Generating DB Script with SqlPackage.exe: http://diegogiacomelli.com.br/azure-pipelines-generating-db-script/
pool:
vmImage: 'vs2017-win2016'
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
dbProject: 'Set with the name of your Sql Server Database Project'
targetDBConnectionString: 'Set with the connection string of the target database'
- task: VSBuild@1
@giacomelli
giacomelli / resume.json
Last active June 5, 2024 10:21
resume.json
{
"meta": {
"theme": "flat"
},
"basics": {
"name": "Diego Giacomelli",
"label": "Senior .NET Developer",
"picture": "https://media.licdn.com/dms/image/D4D03AQERfJU87mCoWQ/profile-displayphoto-shrink_200_200/0/1665448935054?e=1700697600&v=beta&t=ATIC0tovs-MFn42z3tSrizgBERa9REq3baDROEfrUd8",
"email": "giacomelli@gmail.com",
"website": "http://diegogiacomelli.com.br",
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine;
public class AchievementsController : MonoBehaviour
{
void Start()
{
var config = new PlayGamesClientConfiguration.Builder().Build();
PlayGamesPlatform.InitializeInstance(config);
using UnityEngine;
using System;
namespace Giacomelli.Framework
{
/// <summary>
/// TimeSpan Box Attribute - http://diegogiacomelli.com.br/unitytips-timespan-box-drawer
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class TimeSpanBoxAttribute : PropertyAttribute
using UnityEngine;
/// <summary>
/// Dynamic Log - http://diegogiacomelli.com.br/unitytips-dynamic-log
/// </summary>
public class DynamicLog : MonoBehaviour
{
[SerializeField]
string _format;
@giacomelli
giacomelli / SocialShare.cs
Last active July 7, 2020 12:43
SocialShare component using NativeShare plugin (https://github.com/yasirkula/UnityNativeShare)
using System;
using System.IO;
using UnityEngine;
namespace Giacomelli.Framework
{
public class SocialShare : MonoBehaviour
{
[SerializeField]
string _title;
@giacomelli
giacomelli / HelpBoxAttribute.cs
Last active July 14, 2020 10:31
#unitytips: HelpBox Attribute (with docs button)
using UnityEngine;
using System;
namespace Giacomelli.Framework
{
public enum HelpBoxType
{
/// <summary>
/// <para>Neutral message.</para>
/// </summary>
using UnityEngine;
namespace Giacomelli.Framework
{
public class FrameworkSettings : ScriptableObject
{
[SerializeField]
bool _entityLogEnabled;
[SerializeField]
using UnityEngine;
/// <summary>
/// Drawing a Maurer Rose With Unity - http://diegogiacomelli.com.br/drawing-a-maurer-rose-with-unity
/// </summary>
[RequireComponent(typeof(LineRenderer))]
public class MaurerRoseLineRenderer : MonoBehaviour
{
const int PointsCount = 361;
using System.Reflection;
using UnityEngine;
using UnityEngine.Experimental.Rendering.Universal;
/// <summary>
/// unitytips: ShadowCaster2DFromCollider Component
/// http://diegogiacomelli.com.br/unitytips-shadowcaster2-from-collider-component
/// <remarks>
/// Based on https://forum.unity.com/threads/can-2d-shadow-caster-use-current-sprite-silhouette.861256/
/// </remarks>