Skip to content

Instantly share code, notes, and snippets.

View sampconrad's full-sized avatar
🦖

Conrado Sampaio sampconrad

🦖
View GitHub Profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
Import-Module -Name Terminal-Icons
Write-Host -NoNewline "`n`e[1F"
@sampconrad
sampconrad / trad-builder.py
Created January 25, 2024 17:23
Monta traducoes.json a partir da planilha de termos
import pandas as pd
import json
from collections import OrderedDict
df = pd.read_excel('Planilha_Termos_Geral.xlsx', sheet_name='Mobile')
result_dict = OrderedDict()
for index, row in df.iterrows():
portuguese_term = str(row['Termo em português'])
@sampconrad
sampconrad / Core.lua
Created August 26, 2024 05:16
Bring up the context menu for any nameplate in WoW
---@diagnostic disable: undefined-field
-- Localize globals
local _G = _G
local CreateFrame, UIParent, InCombatLockdown, C_NamePlate, UnitCanAttack, UnitIsUnit, Plater = _G.CreateFrame,
_G.UIParent, _G.InCombatLockdown, _G.C_NamePlate, _G.UnitCanAttack, _G.UnitIsUnit, _G.Plater
local GetNamePlateForUnit, GetNamePlates = C_NamePlate.GetNamePlateForUnit, C_NamePlate.GetNamePlates
-- Create the main frame for event handling
local NameplateContextFrame = CreateFrame("Frame", UIParent)
NameplateContextFrame:Hide()