Skip to content

Instantly share code, notes, and snippets.

Diego Giacomelli giacomelli

View GitHub Profile
View FrameworkSettings.cs
using UnityEngine;
namespace Giacomelli.Framework
{
public class FrameworkSettings : ScriptableObject
{
[SerializeField]
bool _entityLogEnabled;
[SerializeField]
@giacomelli
giacomelli / HelpBoxAttribute.cs
Last active Jul 14, 2020
#unitytips: HelpBox Attribute (with docs button)
View HelpBoxAttribute.cs
using UnityEngine;
using System;
namespace Giacomelli.Framework
{
public enum HelpBoxType
{
/// <summary>
/// <para>Neutral message.</para>
/// </summary>
@giacomelli
giacomelli / SocialShare.cs
Last active Jul 7, 2020
SocialShare component using NativeShare plugin (https://github.com/yasirkula/UnityNativeShare)
View SocialShare.cs
using System;
using System.IO;
using UnityEngine;
namespace Giacomelli.Framework
{
public class SocialShare : MonoBehaviour
{
[SerializeField]
string _title;
View DynamicLog.cs
using UnityEngine;
/// <summary>
/// Dynamic Log - http://diegogiacomelli.com.br/unitytips-dynamic-log
/// </summary>
public class DynamicLog : MonoBehaviour
{
[SerializeField]
string _format;
View TimeSpanBoxAttribute.cs
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
View AchievementsController.cs
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine;
public class AchievementsController : MonoBehaviour
{
void Start()
{
var config = new PlayGamesClientConfiguration.Builder().Build();
PlayGamesPlatform.InitializeInstance(config);
View resume.json
{
"basics": {
"name": "Diego Giacomelli",
"label": "programmer",
"picture": "",
"email": "giacomelli@gmail.com",
"website": "http://diegogiacomelli.com.br",
"summary": "Professional programmer since 2001. Since 2005 focused on C#. I've developed all kind of software with C#, like: mobile apps (Xamarin), web sites (ASP .NET MVC/AngularJS), web apis, IDE plugins, multiplatform games (Unity3d) and a lot of libraries. I also love to apply good pratices during the development, this means that continuous integration, code quality, unit tests, functional tests and deploy automation are mandatory requirements in the projects in which I work.",
"location": {
"address": "",
View azure-pipelines.yml
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
View DapperArgumentExtensions.cs
using Dapper;
/// <summary>
/// Extension methods for Dapper arguments
/// </summary>
/// <remarks>
/// The methods below are used to indicate the argument data type to Dapper and avoid the NVARCHAR(4000) arguments on SQL.
/// http://diegogiacomelli.com.br/dapper-and-the-nvarchar-4000-arguments
/// </remarks>
public static class DapperArgumentExtensions
View AzureServiceBus.cs
using Microsoft.ServiceBus.Messaging;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Sample
{
public class AzureServiceBus<TMessage>
{
You can’t perform that action at this time.