Skip to content

Instantly share code, notes, and snippets.

View alchemycs's full-sized avatar

alchemycs

View GitHub Profile
@alchemycs
alchemycs / OpenWebLink.cs
Last active August 29, 2015 14:08
Unity 3D Touchable/Clickable Hyperlinked Objects with 'guiText' Components
@alchemycs
alchemycs / ScreenShot.cs
Created November 7, 2014 23:04
Bind a key to take a screen shot for
using UnityEngine;
using System.Collections;
public class ScreenShot : MonoBehaviour {
//Default is None, you should set this to whatever you want in the inspector
public KeyCode screenshotKey = KeyCode.None;
// Use this for initialization
void Start () {
@alchemycs
alchemycs / Rule 001 - Set the UPN
Last active August 29, 2015 14:10
Microsoft ADFS Claim Rules For Connecting To CompliSpace Fundamentals via SAML
c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"]
=> issue(store = "Active Directory", types = ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"), query = ";userPrincipalName;{0}", param = c.Value);
@alchemycs
alchemycs / to-be-within-tolerance.spec.ts
Created January 13, 2021 03:20
Custom Jest Test For Clock Drift and Ranges
// Define and declare a custom jest expectation so we can handle clock drift tolerances
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace jest {
interface Matchers<R> {
toBeWithinTolerance(center: number, tolerance: number): R;
}
}
}