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
| (function() { | |
| let screenX = window.screenX; | |
| let screenY = window.screenY; | |
| function update() { | |
| const movementX = window.screenX - screenX; | |
| const movementY = window.screenY - screenY; | |
| if (movementX != 0 || movementY != 0) { | |
| screenX = window.screenX; |
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
| (function() { | |
| function popItem(key) { | |
| const value = this.getItem(key); | |
| this.removeItem(key); | |
| return value; | |
| } | |
| window.localStorage.__proto__.popItem = popItem.bind(window.localStorage); | |
| window.sessionStorage.__proto__.popItem = popItem.bind(window.sessionStorage); | |
| })(); |
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
| from pathlib import Path | |
| from typing import TypedDict, Literal, NotRequired, TYPE_CHECKING, Optional | |
| from argparse import Namespace | |
| if TYPE_CHECKING: | |
| from _typeshed import SupportsWrite | |
| class Config(TypedDict): |
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
| function convertToPeriodicValue(value, periodLength) { | |
| let modValue = value % periodLength; | |
| if (modValue < 4) { | |
| return 0; | |
| } else if (modValue >= 4 && modValue < 7) { | |
| return 1; | |
| } else if (modValue >= 7 && modValue < 9) { | |
| return 4; | |
| } | |
| } |
OlderNewer