This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bconst%20t%3Ddocument.querySelectorAll(%22div%5Bdata-v-03734b34%5D%5Bstyle%3D'justify-content%3A%20space-around%3B'%5D%22)%2Ce%3Dt%5B0%5D.textContent.match(%2F(%5Cd%2B)%5Cs*Minutes%5Cs*(%5Cd%2B)%5Cs*Seconds%2F)%2Cn%3De%3F60*Number(e%5B1%5D)%2BNumber(e%5B2%5D)%3A0%3Bfunction%20updateTitle()%7Blet%20t%3Dperformance.now()%2Ce%3DMath.round((t-o)%2F1e3)%2Ca%3DMath.max(0%2Cn-e)%3Bdocument.title%3D%60%E2%8F%B3%3A%20%24%7Ba%7Ds%60%2Ca%3E0%3FrequestAnimationFrame(updateTitle)%3Adocument.title%3D%22%E2%9A%94%20Fight!%22%7Dlet%20o%3Dperformance.now()%3BupdateTitle()%7D)() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bconst%20bountyInfoItems%20%3D%20document.querySelectorAll(%22.bounty-information-text-item%5Bdata-v-489b16b8%5D%22)%2CtitleContainers%20%3D%20document.querySelectorAll(%22.bounty-title-container%5Bdata-v-489b16b8%5D%20span%5Bdata-v-489b16b8%5D%22)%2Cstyles%20%3D%20%7BmaxBountyRatio%3A%20'background%3A%23000%3Bcolor%3A%23fff%3Bpadding%3A1px%206px%3Bborder%3A1px%20solid%20%23000%3Bborder-radius%3A3px%200%200%203px'%2CmaxTitle%3A%20'background%3A%23fff%3Bcolor%3A%23000%3Bpadding%3A1px%206px%3Bborder%3A1px%20solid%20%23000%3Bborder-radius%3A0%203px%203px%200'%7D%3Bfunction%20getBountyInfo(t)%20%7Bconst%20n%20%3D%20titleContainers%5Bt%5D%2Co%20%3D%20bountyInfoItems%5B6%20*%20t%20%2B%205%5D%2Ce%20%3D%20bountyInfoItems%5B6%20*%20t%20%2B%202%5D%3Bif%20(!n)%20return%20console.warn(%60Title%20element%20at%20index%20%24%7Bt%7D%20not%20found.%60)%2C%20null%3Bif%20(!o%20%7C%7C%20!e)%20return%20console.warn(%60Bounty%20ratio%20or%20amount%20element%20at%20index%20%24%7Bt%7D%20not%20found.%60)%2C%20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bconst%20opponentPlayerName%20%3D%20document.querySelectorAll(%22div%5Bdata-v-5784ed69%5D%5Bdata-v-9ecbd550%5D%5Bdata-v-41e3c504%5D%20span%22)%3Bconst%20opponentPlayerLevel%20%3D%20document.querySelectorAll(%22div.wait-bar.wait-bar-text.ev-text-shadow%20span%22)%3Bconst%20battleStats%20%3D%20document.querySelectorAll(%22div%5Bclass%3D'stat-number'%5D%5Bdata-v-5784ed69-s%5D%22)%3Bconst%20dmgText%20%3D%20document.querySelector(%22%23battle-stat-dmg%22)%3Bconst%20styles%20%3D%20%7BstatTextValue%3A%20'padding%3A10px%3Bbackground%3A%23963036%3Bcolor%3A%23fff%3Btext-shadow%3A1px%201px%200%20%23000%2C-1px%20-1px%200%20%23000%2C-1px%201px%200%20%23000%2C1px%20-1px%200%20%23000%2C0px%201px%200%20%23000%2C0px%20-1px%200%20%23000%2C1px%200px%200%20%23000%2C-1px%200px%200%20%23000%3Bfont%3A%20120%25%2F1.5%20fantasy%2Carial%3B'%2CopponentPlayerName%3A%20'padding%3A10px%3Bbackground%3A%231D2123%3Bcolor%3A%23fff%3Btext-shadow%3A1px%201px%200%20%23000%2C-1px%20-1px%200%20%23000%2C-1px%201px%200%20%230 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bconst%20elements%20%3D%20document.querySelectorAll(%22.bounty-information-text-item%5Bdata-v-489b16b8%5D%22)%3Bconst%20titleContainers%20%3D%20document.querySelectorAll(%22.bounty-title-container%5Bdata-v-489b16b8%5D%22)%3Bconst%20styles%20%3D%20%7BmaxBountyRatio%3A%20'background%3A%23000%3Bcolor%3A%23fff%3Bpadding%3A1px%3Bborder%3A1px%20solid%20%23000%3Bborder-radius%3A3px%200%200%203px'%2CmaxTitle%3A%20'background%3A%23fff%3Bcolor%3A%23000%3Bpadding%3A1px%3Bborder%3A1px%20solid%20%23000%3Bborder-radius%3A0%203px%203px%200'%7D%3Bfunction%20logBountyInfo(index)%20%7Bconst%20rewardElement%20%3D%20elements%5Bindex%20*%206%20%2B%205%5D%3Bconst%20requirementElement%20%3D%20elements%5Bindex%20*%206%20%2B%202%5D%3Bif%20(!rewardElement%20%7C%7C%20!requirementElement%20%7C%7C%20!rewardElement.lastChild%20%7C%7C%20!requirementElement.lastChild)%20%7Bconsole.error(%60Invalid%20elements%20at%20index%20%24%7Bindex%7D%60)%3Breturn%20null%3B%7Dconst%20reward%20%3D%20parseFloat(rewardElement.lastChi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bconst%20elements%20%3D%20document.querySelectorAll(%22.bounty-information-text-item%5Bdata-v-489b16b8%5D%22)%3Bconst%20titleContainer%20%3D%20document.querySelectorAll(%22.bounty-title-container%5Bdata-v-489b16b8%5D%22)%3Bfunction%20logBountyInfo(index)%20%7Bconsole.groupCollapsed(%60%25c%24%7BtitleContainer%5Bindex%5D.textContent%7D%20(%24%7Belements%5Bindex%20*%206%20%2B%205%5D.lastChild.textContent%20%2F%20elements%5Bindex%20*%206%20%2B%202%5D.lastChild.textContent%7D)%60%2C%20%22font-size%3A%20large%3B%22)%3Bconsole.log(%60%25c%24%7BtitleContainer%5Bindex%5D.textContent%7D%60%2C%20%22font-weight%3A%20700%3B%20color%3A%20%23593523%3B%22)%3Bconsole.log(%60%25c%24%7Belements%5Bindex%20*%206%20%2B%202%5D.lastChild.textContent%7D%20xp%60%2C%20%22font-weight%3A%20700%3B%20color%3A%20green%3B%22)%3Bconsole.log(%60%25c%24%7Belements%5Bindex%20*%206%20%2B%205%5D.lastChild.textContent%7Dstamina%60%2C%20%22font-weight%3A%20700%3B%20color%3A%20%2398804A%3B%22)%3Bconsole.log(%60%25c%24%7Beleme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Building a Chart Using PowerShell and Chart Controls | |
# https://learn-powershell.net/2016/09/18/building-a-chart-using-powershell-and-chart-controls/ | |
#region Helper Functions | |
Function Invoke-SaveDialog { | |
$FileTypes = [enum]::GetNames('System.Windows.Forms.DataVisualization.Charting.ChartImageFormat') | ForEach { | |
$_.Insert(0, '*.') | |
} | |
$SaveFileDlg = New-Object System.Windows.Forms.SaveFileDialog | |
$SaveFileDlg.DefaultExt = 'PNG' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$doc, $marty = 'Dr. Emmett Brown', 'Marty McFly' | |
$time = [DateTime]'Friday, October 25, 1985 8:00:00 AM' | |
$diff = New-TimeSpan -Minutes 25 | |
@" | |
$doc : Are those my clocks I hear? | |
$marty : Yeah! Uh, it's $($time.Hour) o'clock! | |
$doc : Perfect! My experiment worked! They're all exactly $($diff.Minutes) minutes slow. | |
$marty : Wait a minute. Wait a minute. Doc... Are you telling me that it's $(($time + $diff).ToShortTimeString())? | |
$doc : Precisely. | |
$marty : Damn! I'm late for school! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){location.href=location.href.substring(location.href.indexOf(location.pathname)).concat('/schedule')})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET _we="%POWERSHELL_DISTRIBUTION_CHANNEL%" | |
FOR /F "tokens=* delims=MSI:" %%G IN (%_we%) DO SET _newvar=%%G | |
echo. %_newvar% | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET _we="%POWERSHELL_DISTRIBUTION_CHANNEL%" | |
FOR /F "tokens=* delims=MSI:" %%G IN (%_we%) DO echo %%G | |
pause |
NewerOlder