Skip to content

Instantly share code, notes, and snippets.

View ikriz's full-sized avatar
👨‍💻
Coding Magic

Kristen ikriz

👨‍💻
Coding Magic
View GitHub Profile
@ikriz
ikriz / gist:5e36e9acf5eab77202156c85af9d61f5
Created September 11, 2020 09:59
Unity Hub Commandline Help
Commands:
editors
description: list the releases and installed editors
alias: e
example: Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless editors -r
options:
[default] list of available releases and installed editors on your machine combined
--releases|-r only list of available releases promoted by Unity
--installed|-i only list of installed editors on your machine
@ikriz
ikriz / Display.RelativeMouseAt.cs
Last active October 8, 2020 11:39 — forked from karljj1/Display.RelativeMouseAt.cs
Emulate multiple display input using GameViews
Vector3 RelativeMouseAt()
{
var mouseOverWindow = EditorWindow.mouseOverWindow;
System.Reflection.Assembly assembly = typeof(UnityEditor.EditorWindow).Assembly;
Type type = assembly.GetType("UnityEditor.PlayModeView");
int displayID = 0;
if (type.IsInstanceOfType(mouseOverWindow))
{
var displayField = type.GetField("m_TargetDisplay", BindingFlags.NonPublic | BindingFlags.Instance);
@ikriz
ikriz / ComponentLib_Thermistor2.pde
Created November 29, 2011 23:14 — forked from 100ideas/ComponentLib_Thermistor2.pde
Mystery Thermistor A B C coefficients (Steinhart-hart model)
/*
* http://arduino.cc/playground/ComponentLib/Thermistor2
*
* Inputs ADC Value from Thermistor and outputs Temperature in Celsius
* requires: include <math.h>
* Utilizes the Steinhart-Hart Thermistor Equation:
* Temperature in Kelvin = 1 / {A + B[ln(R)] + C[ln(R)]3}
* where A = 0.001129148, B = 0.000234125 and C = 8.76741E-08
*
* These coefficients seem to work fairly universally, which is a bit of a