Hover itㅤ[<img src="https://www.wppluginsforyou.com/wp-content/uploads/2020/05/tooltips.png" width="15px" />
](## "Code preview syntax was generated using gh-linguist-preview")
I hereby claim:
- I am araxeus on github.
- I am araxeus (https://keybase.io/araxeus) on keybase.
- I have a public key ASC01sIXGolKO5NLBUm_U9Ue3fOHRhDMD-DGLCmdjhtYzQo
To claim this, I am signing this object:
This file contains 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: (() => {window.reddit_comment_search??={loadingIcon:'<svg xmlns="http://www.w3.org/2000/svg" style="margin:auto" width="35" height="35" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" display="block"><circle cx="50" cy="50" r="32" stroke-width="8" stroke="#ff4500" stroke-dasharray="50.265 50.265" fill="none" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1.5s" keyTimes="0;1" values="0 50 50;360 50 50"/></circle></svg>',ogIconHtml:document.querySelector('[aria-label="Home"] svg').outerHTML,regex:regex=/\d more repl(?:y|ies)/,search:[],currentIndex:0,afterExpand(){const e=document.querySelector("input#header-search-bar")?.value;e?this.searchFor(e):this.searchForLinks(),console.log(`Done searching (${window.reddit_comment_search.search.length} results found)`),window.reddit_comment_search.rcsLoaded||(document.addEventListener("keydown",(({code:e})=>{"Period"===e&&this.next(),"Comma"===e&&this.previous()}),{passive:!0}),this.rcsLoade |
This file contains 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
const x = $('pre').textContent; | |
[...x.matchAll(/(?<dir>\w+) (?<num>\d+)/g)].reduce((p, c) => ({ | |
y: c.groups.dir === 'forward' ? p.y + Number(c.groups.num) : p.y, | |
x: p.x + (c.groups.dir === 'up' ? Number(-c.groups.num) : c.groups.dir === 'down' ? Number(c.groups.num) : 0) | |
}),{x: 0, y: 0}); | |
// ******************************************************************************************************************** Part 2 | |
const x = $('pre').textContent; |
This file contains 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
const defineArr = (prop, value) => { | |
if (!Array.prototype.hasOwnProperty(prop)) { | |
Object.defineProperty(Array.prototype, prop, { | |
value | |
}); | |
} | |
}; | |
defineArr('groupBy', function value(fn) { return this.reduce((p, c, i) => { | |
const k = fn(c, i, p); |
This file contains 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
#!/usr/bin/env pwsh | |
#Requires -Version 7 | |
# Specifying no parameter will result in current working directory ($pwd) being archived into $pwd\$pwd.zip | |
param ( | |
# The following paths can be relative or absolute: | |
# path to folder/s containing the files to be archived | |
[Alias("i","input","from")][string[]][ValidateScript({ Test-Path -LiteralPath $_ })] $FolderPaths = @($PWD), | |
# path to zipfile / zipFolder if $ZipNameFromJson is specified (will be created if it doesn't exist) | |
[Alias("t","to","output")][string] $ZipPath = "", # defaults to $PWD.zip |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Document</title> | |
</head> | |
<body> | |
<h1>Notifications Example</h1> | |
</p> | |
<button>Send Notification</button> | |
<script> |
see https://developers.google.com/youtube/iframe_api_reference
const id = getChannelID() || getOriginalAlbumID
$('ytmusic-app').navigate_(id)
note: albumID needs to be in original format, like in this link https://music.youtube.com/browse/MPREb_QzG0rdjYht1
and not like the address that it redirects to (https://music.youtube.com/playlist?list=OLAK5uy_kbMeriANLfv4JxNm5KlbyPwq1GmgCjmkY)
This file contains 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
const virtualKeyCodes = { | |
ShiftLeft: "Shift", | |
ShiftRight: "Shift", | |
ControlLeft: "Ctrl", | |
ControlRight: "Ctrl", | |
AltLeft: "Alt", | |
AltRight: "Alt", | |
MetaLeft: "Super", | |
MetaRight: "Super", | |
NumLock: "NumLock", |
NewerOlder