Skip to content

Instantly share code, notes, and snippets.

View xanathar's full-sized avatar
🐢
I may be slow to respond. Who am I kidding?. I will be VERY slow to respond.

Marco Mastropaolo xanathar

🐢
I may be slow to respond. Who am I kidding?. I will be VERY slow to respond.
View GitHub Profile
@xanathar
xanathar / main.cpp
Created June 15, 2016 09:30
Simple example of Lua integration in C++
//
// main.cpp
// LuaTests
//
// Created by Marco Mastropaolo on 08/06/16.
// Copyright © 2016 Marco Mastropaolo. All rights reserved.
//
#include <iostream>
#include "../include/lua.hpp"
@xanathar
xanathar / StateAnimator.cs
Created March 2, 2016 21:16
Animator state machine for simple, stateful, immediate mode 2D animations in Unity3D
using System;
using System.Collections.Generic;
using UnityEngine;
public struct StateAnimatorData<T>
{
public StateAnimator<T> Animator { get; internal set; }
public StateAnimatorHandler<T> AnimatorState { get; internal set; }
public T State { get; internal set; }
public float StateTime { get; internal set; }
@xanathar
xanathar / MethodInfoSpecialNames.cs
Created January 28, 2016 17:54
Partial enumeration of reflection MethodInfo special names
// doesn't necessary compile, nor it is necessarily comprehensive but seems a good start ;)
public enum ReflectionSpecialNameType
{
IndexGetter,
IndexSetter,
ImplicitCast,
ExplicitCast,
BinaryOperator,
@xanathar
xanathar / iis7_command_line_tool.md
Last active May 22, 2023 12:01 — forked from jonlabelle/iis7_command_line_tool.md
IIS 7 Command Line Tool

IIS 7 Command Line Tool

AppCmd.exe IIS 7 command-line tool used to perform common IIS administrative tasks such as creating new sites, stopping/starting services, and viewing status of the site.

Usage

appcmd (command) (object-type) <identifier> </parameter1:value1 ...>
@xanathar
xanathar / EventHandlers in MoonSharp
Created December 12, 2014 20:44
Sample of event handlers in MoonSharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MoonSharp.Interpreter;
namespace PerformanceComparison
{
class Sample
@jonlabelle
jonlabelle / iis7_command_line_tool.md
Created April 17, 2014 21:41
IIS 7 Command Line Tool

IIS 7 Command Line Tool

AppCmd.exe IIS 7 command-line tool used to perform common IIS administrative tasks such as creating new sites, stopping/starting services, and viewing status of the site.

Usage

appcmd (command) (object-type) <identifier> </parameter1:value1 ...>
@p1nox
p1nox / using_meld_on_mac.md
Last active June 13, 2023 16:24
Using meld on Mac

Using Meld merging tool on Mac

There are two ways of installing meld on osx (May 2023), using brew and .dmg package (from @yousseb). Since I found https://yousseb.github.io/meld/, I've installed it with .dmg package, but having macOS Ventura Version 13.4 (22F66) in place, it's not even starting for me. So I tried brew installation, and the application is working as expected, including symlink to start it from the terminal.

brew install --cask meld

# set meld as your default git mergetool
@umpirsky
umpirsky / A.markdown
Last active August 3, 2023 18:14 — forked from olivierlacan/An_example.markdown
Sublime Text Monokai Sidebar Theme.
@coldnebo
coldnebo / Default (OSX).sublime-keymap -- User
Created February 3, 2012 16:21
Sublime Text 2 fix for OSX home/end keys
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }
@joshuaflanagan
joshuaflanagan / package.bat
Created June 24, 2011 02:57
Examples of how to build all Nuget nuspec files in a folder
@ECHO OFF
SETLOCAL
SET VERSION=%1
SET NUGET=buildsupport\nuget.exe
FOR %%G IN (packaging\nuget\*.nuspec) DO (
%NUGET% pack %%G -Version %VERSION% -Symbols -o artifacts
)