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 / Log2 - Healing button
Created May 15, 2015 16:39
Button/Crystal hybrid in log2
defineObject{
name = "xan_heal_button",
components = {
{
class = "Crystal",
cooldown = 0,
},
{
class = "Model",
name = "buttonModel",
@xanathar
xanathar / MoonSharp_CustomDescritorForDictionaryAccess
Created June 15, 2015 11:53
MoonSharp_CustomDescritorForDictionaryAccess
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MoonSharp.Interpreter;
using MoonSharp.Interpreter.Interop;
namespace Playground
{
@xanathar
xanathar / bash_profile
Last active August 29, 2015 14:23
My bash_profile on OS/X
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export GIT_EDITOR='subl -w'
export EDITOR='subl -w'
export JAVA_HOME=$(/usr/libexec/java_home)
export AKKA_HOME="~/tools/akka-2.3.11"
alias ll='ls -FGlAhp'
@xanathar
xanathar / Windows Bare Minimum Setup
Last active April 26, 2017 16:52
Bare minimum setup of Windows machine for devs (dev platform agnostic)
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
cd %ALLUSERSPROFILE%\chocolatey\bin
choco install googlechrome -y
choco install flashplayerplugin -y
choco install 7zip -y
choco install xnview -y
choco install notepadplusplus -y
choco install git -y
@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 / MoonSharp_Threading.cs
Created August 20, 2015 17:05
MoonSharp threading example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using MoonSharp.Interpreter;
using MoonSharp.Interpreter.Interop;
namespace Playground
@xanathar
xanathar / Unity_InstantiatePrefabByName.cs
Created September 17, 2015 17:32
Instantiate Prefab By Name
using UnityEngine;
using System.Collections;
public class LevelCloner : MonoBehaviour
{
// Use this for initialization
void Start ()
{
Debug.Log ("Enter!");
@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 / 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 / Easing.cs
Created March 17, 2016 23:54
Robert Penner's easing equations for Unity
/**
* Easing
* Animates the value of a float property between two target values using
* Robert Penner's easing equations for interpolation over a specified Duration.
*
* Original Author: Darren David [email protected]
*
* Ported to be easily used in Unity by Marco Mastropaolo
*
* Credit/Thanks: