Skip to content

Instantly share code, notes, and snippets.

View mildmojo's full-sized avatar
💃
Not much. You?

Tim mildmojo

💃
Not much. You?
View GitHub Profile
@fuzzblob
fuzzblob / EditorHelper.cs
Created October 20, 2017 05:21
simple Unity inpector GUI element for a value and a random offset in a single range slider
#if UNITY_EDITOR
using UnityEngine;
using UnityEditor;
public class EditorHelper
{
public static GUILayoutOption[] __buttonOptions = new GUILayoutOption[] { GUILayout.Width(120f), GUILayout.ExpandWidth(false) };
public static void RandomRangeSlider(string propertyName, ref float val, ref float rand, ref bool randomEnabled, float min, float max, float resetValue)
{
@rodneyrehm
rodneyrehm / anti-keygrabber.user.js
Last active July 5, 2022 01:31
GreaseMonkey: Prevent Web Applications From Grabbing Certain HotKeys
// ==UserScript==
// @name anti key-grabber
// @description Prevent web apps from capturing and muting vital keyboard shortcuts
// @grant none
// @version 1.1
// ==/UserScript==
(function(){
var isMac = unsafeWindow.navigator.oscpu.toLowerCase().contains("mac os x");
unsafeWindow.document.addEventListener('keydown', function(e) {
if (e.keyCode === 116) {