Skip to content

Instantly share code, notes, and snippets.

View dolphinspired's full-sized avatar
🐶
Vibin'

Jacob Brogan dolphinspired

🐶
Vibin'
View GitHub Profile
@dolphinspired
dolphinspired / Filtered-long.txt
Last active June 3, 2023 00:51
Runelite Ground Items Filter List (UIM)
* arrow*,
* bolts*,
* dart*,
* knife*,
Acorn,
Adamant axe,
Adamant dagger,
Adamant javelin,
Agility potion*,
Air rune,
@dolphinspired
dolphinspired / FunctionContextAccessor.md
Last active May 30, 2024 16:50
FunctionContextAccessor example

IFunctionContextAccessor Implementation

This is a brief tutorial on how to create a dependency-injectable FunctionContext accessor for Azure Functions running on the dotnet-isolated runtime (.NET 5 and up). This will work very similarly to IHttpContextAccessor - it will allow you to access details about the current Function invocation and pass arbitrary values between injected services that are scoped to this invocation.

  1. Create your interface. You must include both get and set on this interface.
public interface IFunctionContextAccessor
{
 FunctionContext FunctionContext { get; set; }
@dolphinspired
dolphinspired / LocationFinderExamples.lua
Last active August 11, 2020 02:03
Help for developing the LocationFinder
-- When creating the frame, create a font string with some placeholder text
local playerLocationText = frame:CreateFontString(nil, "BACKGROUND", "GameFontNormal") -- or some other font
playerLocationText:SetText("PLAYER_POSITION") -- we should never see this text anyway
-- Add that font string as a property on the frame so that we can reference it later
addon.LocationFinderFrame.playerLocationText = playerLocationText
-- Whenever the frame is shown (on the "OnShow" event), start polling for player location