Skip to content

Instantly share code, notes, and snippets.


Jared Beach jmbeach

View GitHub Profile
jmbeach / Debug.ahk
Last active Aug 25, 2019
AutoHotkey Console Log/WriteLine Equivalent
View Debug.ahk
;Inspired by thread:
;Based on script by user Hachi.
;Edit by Jared Beach.
; #include this script in a script you want to debug.
; "#Include, ./debug.ahk"
; Add debug messages by writing `debug("your message here")`
; See live debug messages by running:
jmbeach / GoogleHotkey.ahk
Last active Jun 13, 2018
AutoHotkey Google Search
View GoogleHotkey.ahk
; Google Search
; Fanatic Guru
; 2014 05 01
; Version: 1.0
; Google Search of Highlighted Text
; If Internet Explorer is already running it will add search as new tab
jmbeach / Resharper Floating Windows Always On Top Workaround
Created Sep 4, 2014
SRC: - @andrii, @adam Due to a bug in Visual Studio 2012, using ReSharper in floating windows leads to unpredictable focus switches. Microsoft is aware of the problem but there’s no time estimate for a fix from them. Upon examining a set of floating window usage scena…
View Resharper Floating Windows Always On Top Workaround
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="">
<s:Boolean x:Key="/Default/Housekeeping/SuppressOwnerlessFloatingWindows/IsDisablingIndependentFloating/@EntryValue">False</s:Boolean>
View PathPoints With Colliders
using UnityEngine;
using System.Collections;
using System;
public class PathPoint : MonoBehaviour {
int radius = 10;
public Func<Collider,GameObject, int> TriggerEnterAction;
public Func<Collider, int> TriggerExitAction;
public GameObject ObjectToDetect;
void OnDrawGizmos(){
View PathPoint With Collider Setup
void Start()
// for each node
foreach (var node in Nodes)
// get point class and assign your custom trigger function to it
var point = node.GetComponent<PathPoint>();
point.TriggerEnterAction = OnPathPointEnter;
// let it know to only call trigger if this is the object collided
point.ObjectToDetect = gameObject;
View PathPoint Trigger function
int OnPathPointEnter(Collider other,GameObject pathPoint)
_nodeLastVisited = Nodes.IndexOf(pathPoint.transform)+1;
return 0;
View cs
public static class MyMiniProfiler
public static MiniProfilerStep XStep(this MiniProfiler profiler, string operationName)
return new MiniProfilerStep(profiler, operationName);
View BetterToggleGroupEx.cs
TglGroup = GameObject.Find("Toggle Group Name").GetComponent<BetterToggleGroup>();
TglGroup.OnChange += TglGroup_OnChange;
void TglGroup_OnChange(Toggle newActive)
Debug.Log(string.Format("Toggle {0} selected",;
jmbeach / packages.config
Last active Mar 30, 2016 — forked from okhiroyuki/packages.config
Packages.Config of Chocolatey
View packages.config
<?xml version="1.0" encoding="utf-8"?>
<package id="vim" />
<package id="atom" />
<package id="vlc" />
<package id="python2" />
<package id="google-chrome-x64" />
<package id="firefox" />
<package id="clover" />
<package id="adobereader" />
View commandline debug.txt
beginning parse
matching treat
matching id
matching eq
matching expression
matching primary