This file contains hidden or 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> | |
/// Hierarchy Window Group Header | |
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-group-header | |
/// </summary> | |
[InitializeOnLoad] | |
public static class HierarchyWindowGroupHeader | |
{ |
This file contains hidden or 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 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/ |
This file contains hidden or 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 Layer Info | |
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-layer-info/ | |
/// </summary> | |
[InitializeOnLoad] | |
public static class HierarchyWindowLayerInfo | |
{ |
This file contains hidden or 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 System; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// Gist importer. |
This file contains hidden or 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> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |