Skip to content

Instantly share code, notes, and snippets.

View SyntaxStacks's full-sized avatar

John Lozano SyntaxStacks

View GitHub Profile
@sam-keene
sam-keene / Unity EventManager Using UnityEvents With Parameters
Last active December 18, 2021 23:34
Unity EventManager using UnityEvents and a HashTable to pass data of any type as a parameter in the event.
using UnityEngine.Events;
using System.Collections;
using System.Collections.Generic;
/*
Unity C# Event manager using UnityEvents and a Hashtable for loosely typed params with event.
This EventManager expands the usefulness of UnityEvents by allowing values of any type to be passed as a
parameter in the Event eg: int, string, Vector3 etc.
Usage:

Installing and configuring dwm on OS X

  1. Install X11.app (it's on the OS X install disk or something.)

  2. Install dwm. You have to customize config.h a bit:

    1. Replace { MODKEY|ShiftMask, XK_q, quit, {0} }, with { MODKEY|ControlMask, XK_q, quit, {0} }, to avoid colliding with the Log Out shortcut in the Apple menu.

    If you install dwm from Homebrew, brew install dwm, this is done automatically.