Deep это:
- Связи
- Пакеты, содержащие связи (сам пакет это тоже связь)
- Обработчики вставки/обновления/удаления в любой поддерживаемой среде
- Материализованный путь связей, деревья
| function serialize(numbers) { | |
| return numbers.map(num => String.fromCharCode(num)).join(''); | |
| } | |
| function deserialize(str) { | |
| return str.split('').map(char => char.charCodeAt(0)); | |
| } | |
| let numbers = [1, 5, 10, 255, 300]; | |
| let serialized = serialize(numbers); |
| import yargs from "yargs"; | |
| import { hideBin } from "yargs/helpers"; | |
| const cliOptions = yargs(hideBin(process.argv)) | |
| .usage(`$0 [Options]`, `Description of the program`) | |
| .options({ | |
| verbose: { | |
| alias: "v", | |
| description: "Enable verbose logging", | |
| type: "boolean", |
| doAllWork(); | |
| /** | |
| * Find repeating messages in the twitch chat every {@link checkIntervalInMs} milliseconds and play a sound at url {@link soundUrl} if there are more than {@link howManyMessagesMustBeUnique} unique messages in the last {@link howManyMessagesToCheck} and logs the messages if {@link shouldLog} is true and adds a stop button to the page | |
| * @example | |
| * ``` | |
| * workForMe() | |
| * ``` | |
| */ | |
| function doAllWork( |
| // Get your token by creating one token manually and find it in Browser Developer Tools -> Network -> GenerateApiKey -> Request | |
| const REQUEST_VERIFICATION_TOKEN = REQUEST_VERIFICATION_TOKEN; | |
| const packages = [ | |
| ...document | |
| .querySelector('.available-packages-container') | |
| .querySelectorAll('input'), | |
| ].map((input) => input.parentNode.textContent.trim()); | |
| for (package of packages) { | |
| fetch('https://www.nuget.org/account/GenerateApiKey', { | |
| headers: { |
| const regenerateTokens = async ({ manageContainer }) => { | |
| const regenerateTokenElements = [ | |
| ...manageContainer.querySelectorAll('a'), | |
| ].filter((linkElement) => linkElement.textContent.trim() == 'Regenerate'); | |
| for (regenerateTokenElement of regenerateTokenElements) { | |
| regenerateTokenElement.click(); | |
| } | |
| prompt('Wait until all your keys regenerate to copy them properly'); | |
| }; |
| const manageContainer = document.querySelector("#manage-container"); | |
| const regenerateTokenElements = [...manageContainer.querySelectorAll("a")].filter(linkElement => linkElement.textContent.trim() == 'Regenerate') | |
| for (regenerateTokenElement of regenerateTokenElements) { | |
| regenerateTokenElement.click() | |
| } |
| // Get your token by creating one token manually and find it in Browser Developer Tools -> Network -> GenerateApiKey -> Request | |
| const REQUEST_VERIFICATION_TOKEN = REQUEST_VERIFICATION_TOKEN; | |
| const packages = [ | |
| ...document | |
| .querySelector('.available-packages-container') | |
| .querySelectorAll('input'), | |
| ].map((input) => input.parentNode.textContent.trim()); | |
| for (package of packages) { | |
| fetch('https://www.nuget.org/account/GenerateApiKey', { | |
| headers: { |