Code:\Command Line\PowerShell ▸ .\counter.ps1
Number to count to: 275
█
█
██
█
█ █
██
███
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
| const notes = [...document.querySelector('piano-keyboard').shadowRoot.querySelectorAll('piano-keyboard-octave')].map(oct=>oct.shadowRoot.querySelectorAll('piano-keyboard-note')).map((a)=>Array.from(a)).flat() | |
| async function trollar () { | |
| for (const note of notes.filter((_,e)=>e%2==0)) { | |
| note.clicked = true | |
| } | |
| await new Promise(r=>setTimeout(r,5)) | |
| for (const note of notes.filter((_,e)=>e%2==0)) { | |
| note.clicked = false | |
| note.release() |
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
| const div = document.createElement('div') | |
| div.innerHTML = ` | |
| <paper-button noink="" class="style-scope ytd-subscribe-button-renderer" role="button" tabindex="0" animated="" elevation="0" aria-disabled="false" aria-label="Download to your PC" style="background: blue"><!--css-build:shady--><!--css-build:shady--> | |
| <yt-formatted-string class="style-scope ytd-subscribe-button-renderer">Download</yt-formatted-string> | |
| </paper-button> | |
| ` | |
| const [button] = div.children | |
| document.querySelector('ytd-subscribe-button-renderer').appendChild(button) | |
| button.innerText = 'Download' | |
| button.addEventListener('click', ()=>location.href='https://projectlounge.pw/ytdl/download?url=https://youtube.com/'+encodeURIComponent(location.search)) |
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
| local comp = require('component') | |
| comp.eeprom.set('') | |
| comp.eeprom.setLabel('Wiped BIOS') | |
| computer.shutdown(true) -- reboot |
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
| Math.round(5**079).toPrecision(56) | |
| Math.round(5**5.3018) // 5079 |
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
| const getRaymondHaters = () => new Promise(resolve => { | |
| (function scroll(callback) { | |
| const button = document.querySelector('.see-all-btn-bar > button') | |
| if (button) { | |
| button.scrollIntoView() // so it loads properly for some reason | |
| button.click() // load more | |
| setTimeout(scroll, 300) // account for lag | |
| } else { | |
| // Raymond lovers list is complete | |
| resolve( |
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
| const css = obj => Object.entries(obj).map(([key, val]) => `${key}: ${val};`).join('\n') |
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
| const removeCirc = obj => Object.fromEntries(Object.entries(obj).filter(([key, val])=>val !== obj)) |
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
| [...'A string'].map(str=>str.charCodeAt()).reduce((a, b) => a + b) |
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
| $loc = Read-Host 'Name that folder' | |
| (ls -File).Name | Select-String -Pattern $loc | foreach { mv -Path $_ -Destination "./$(loc)/"} |
NewerOlder