This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GooglePlayGames; | |
using GooglePlayGames.BasicApi; | |
using UnityEngine; | |
public class AchievementsController : MonoBehaviour | |
{ | |
void Start() | |
{ | |
var config = new PlayGamesClientConfiguration.Builder().Build(); | |
PlayGamesPlatform.InitializeInstance(config); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.ServiceBus.Messaging; | |
using Newtonsoft.Json; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Sample | |
{ | |
public class AzureServiceBus<TMessage> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tool nuget:?package=MSBuild.SonarQube.Runner.Tool&version=4.6.0 | |
#addin nuget:?package=Cake.Sonar&version=1.1.22 | |
#addin nuget:?package=Cake.Git&version=0.21.0 | |
var target = Argument("target", "Default"); | |
var solutionDir = "src"; | |
var sonarLogin = "[SONARCLOUD-USER-TOKEN]"; | |
var branch = GitBranchCurrent(".").FriendlyName; | |
Task("Build") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
/// <summary> | |
/// Scene preview data. | |
/// http://diegogiacomelli.com.br/unitytips-scene-preview-window | |
/// </summary> | |
public class ScenePreviewData | |
{ | |
Texture2D _texture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// Hierarchy window game object icon. | |
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-gameobject-icon/ | |
/// </summary> | |
[InitializeOnLoad] | |
public static class HierarchyWindowGameObjectIcon | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/tsp" | |
@inject IJSRuntime _js | |
<div class="container"> | |
<div class="row"> | |
<div> | |
Cities: <input type="text" @bind=@_numberOfCities onblur=@ResetGA disabled=@_tspGA.IsRunning /> | |
</div> | |
<div> | |
<button onclick=@ResetGA disabled=@_tspGA.IsRunning >Reset</button> |