Skip to content

Instantly share code, notes, and snippets.

Diego Giacomelli giacomelli

Block or report user

Report or block giacomelli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View resume.json
{
"basics": {
"name": "Diego Giacomelli",
"label": "programmer",
"picture": "",
"email": "giacomelli@gmail.com",
"phone": "+55 51 99202-3419",
"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": {
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>
{
View build.cake
#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")
View ScenePreviewData.cs
using UnityEngine;
using UnityEditor;
/// <summary>
/// Scene preview data.
/// http://diegogiacomelli.com.br/unitytips-scene-preview-window
/// </summary>
public class ScenePreviewData
{
Texture2D _texture;
View HierarchyWindowGameObjectIcon.cs
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
{
View Tsp.razor
@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>
View GistImporter.cs
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Gist importer.
View HierarchyWindowLayerInfo.cs
using UnityEditor;
using UnityEngine;
// <summary>
/// Hierarchy Window Layer Info
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-layer-info/
/// </summary>
[InitializeOnLoad]
public static class HierarchyWindowLayerInfo
{
View HierarchyWindowGroupHeader.cs
using System;
using System.IO;
using System.Runtime.CompilerServices;
using UnityEditor;
using UnityEngine;
using UnityEngine.Events;
/// <summary>
/// Hierarchy Window Group Header
/// http://diegogiacomelli.com.br/unitytips-changing-the-style-of-the-hierarchy-window-group-header/
You can’t perform that action at this time.