Skip to content

Instantly share code, notes, and snippets.

@31
31 / volume-by-one.ahk
Created December 20, 2023 00:48
Adjust Windows volume by 1 instead of 2, AutoHotkey v2
$Volume_Up::
{
volume := SoundGetVolume()
Send "{Volume_Up}"
SoundSetVolume volume + 1
}
$Volume_Down::
{
volume := SoundGetVolume()
@31
31 / gist:3781b066e16bf538f170
Last active November 10, 2023 02:05
OpenGL functions by object
@31
31 / ComponentExtensions.cs
Last active August 29, 2015 14:05
Unity: Static-checked message broadcasting component extensions
using System;
using System.Linq.Expressions;
using System.Reflection;
using UnityEngine;
public static class ComponentExtensions
{
public static void BroadcastTypedMessage<T>(
this Component c,
Expression<Func<T, Action>> method,