Skip to content

Instantly share code, notes, and snippets.

View giacomelli's full-sized avatar
🎮
gamedev

Diego Giacomelli giacomelli

🎮
gamedev
View GitHub Profile
public class BotController : MonoBehaviour
{
private void Start()
{
Send("Hello world!");
}
/// <summary>
/// Sends a message to a Slack channel using the Slackbot API through the chat.postMessage (https://api.slack.com/methods/chat.postMessage)
/// </summary>
using System;
using GeneticSharp.Domain;
using GeneticSharp.Domain.Chromosomes;
using GeneticSharp.Domain.Crossovers;
using GeneticSharp.Domain.Fitnesses;
using GeneticSharp.Domain.Mutations;
using GeneticSharp.Domain.Populations;
using GeneticSharp.Domain.Selections;
using GeneticSharp.Domain.Terminations;
using UnityEngine;
using UnityEditor;
using UnityEngine.SceneManagement;
using System.Linq;
/// <summary>
/// Scene preview.
/// https://diegogiacomelli.com.br/unity3d-scenepreview-inspector/
/// </summary>
[CustomEditor(typeof(SceneAsset))]
using UnityEngine;
public class TspCity
{
public Vector2 Position { get; set; }
}
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Sorting Layer Debugger.
/// https://diegogiacomelli.com.br/a-sorting-layer-debugger-for-unity/
/// </summary>
public class SortingLayerDebugger : EditorWindow
var physicalPath: string = '/site/wwwroot';
if(taskParams.VirtualApplication)
{
physicalPath = await appServiceUtility.getPhysicalPath(taskParams.VirtualApplication);
await kuduServiceUtility.createPathIfRequired(physicalPath);
virtualApplicationPath = physicalPath;
}
using UnityEditor;
using UnityEngine;
/// <summary>
/// Folder organizer editor window.
/// http://diegogiacomelli.com.br/using-an-assetpostprocessor-editorwindow-to-keep-assets-organized-on-unity-projects
/// </summary>
public class FolderOrganizerEditorWindow : EditorWindow
{
FolderOrganizerSettings _settings;
using System.Linq;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Easing2Curve: An editor window to create animation curve from easing functions
/// http://diegogiacomelli.com.br/easing-2-curve-an-editor-window-to-create-animation-curve-from-easing-functions/
/// </summary>
public class Easing2CurveEditorWindow : EditorWindow
{
using UnityEditor;
using UnityEngine;
public static class TransformContextMenu
{
[MenuItem("CONTEXT/Transform/Make a circle")]
public static void MakeCircle()
{
var length = Selection.gameObjects.Length;
var radius = 5;
@giacomelli
giacomelli / TesseractService.cs
Created June 13, 2019 10:50
Using Tesseract4 with C#
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
namespace Ocr
{
/// <summary>
/// Service to read texts from images through OCR Tesseract engine.