Skip to content

Instantly share code, notes, and snippets.

View tomxi's full-sized avatar

TomXi | Qingyang Xi tomxi

View GitHub Profile
@tomxi
tomxi / loot_filter.lua
Created August 7, 2020 01:13
loot filter macros for WoW
# delete what is selected
/run DeleteCursorItem();
# Delete all gray items in bag
/run local i,r=0;for b=0,4 do for s=1,GetContainerNumSlots(b) do ClearCursor();i={GetContainerItemInfo(b,s)};r=i[7];if r and string.find(r,"9d9d9d") then PickupContainerItem(b,s);DeleteCursorItem() end end end
# add selected item to whitelist
/run if not _G['wlist'] then _G['wlist']={} end local t,id,l=GetCursorInfo();if t=='item' then _G['wlist'][id]=true end ClearCursor()
# remove selected item from whitelist
@tomxi
tomxi / sound_recorder.py
Created July 25, 2018 15:40 — forked from mabdrabo/sound_recorder.py
Simple script to record sound from the microphone, dependencies: easy_install pyaudio
import pyaudio
import wave
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
CHUNK = 1024
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "file.wav"