If you’re running Windows 10 Pro or Enterprise 64-bit edition, here we take a look at setting up a Virtual Machine using the built in Hyper-V technology.
Month: February 2017
-
World of Warcraft: If Quest Done by Quest ID
The following script will print
true
if the given quest is done./script print(IsQuestFlaggedCompleted(12345))
-
World of Warcraft: Anit-AFK Macro
Actually this macro will dismiss logout timer when you’re AFK.
/script T,F=T or 0,F or CreateFrame("frame")if X then X=nil else X=function()local t=GetTime()if t-T>1 then StaticPopup1Button1:Click()T=t end end end F:SetScript("OnUpdate",X)
-
World of Warcraft: Untrack Finished Achievements
Sometimes the UI is bugged that your finished achievements are still tracked and there’s no way to untrack them, run the following command to untrack them:
/script RemoveTrackedAchievement(GetTrackedAchievements())
The above command remove the first tracking achievement in your tracking list.
-
World of Warcraft: Hide Player Guild Names under Nameplates
See original post
/console UnitNamePlayerGuild 0
-
ECMAScript Regular Expressions Lookbehind Assertions
From ECMAScript regular expressions are getting better!:
Lookarounds are zero-width assertions that match a string without consuming anything. ECMAScript currently supports lookahead assertions that do this in forward direction. Positive lookahead ensures a pattern is followed by another pattern:
const pattern = /\d+(?= dollars)/u; const result = pattern.exec('42 dollars'); // → result[0] === '42'
Negative lookahead ensures a pattern is not followed by another pattern:
const pattern = /\d+(?! dollars)/u; const result = pattern.exec('42 pesos'); // → result[0] === '42'
A proposal adds support for lookbehind assertions. Positive lookbehind ensures a pattern is preceded by another pattern:
const pattern = /(?<=\$)\d+/u; const result = pattern.exec('$42'); // → result[0] === '42'
Negative lookbehind ensures a pattern is not preceded by another pattern:
const pattern = /(?<!\$)\d+/u; const result = pattern.exec('€42'); // → result[0] === '42'