sudo apt install openjdk-8-jdk-headless
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 dataclasses import dataclass | |
| class ADTMeta(type): | |
| def __new__(mcs, name, bases, namespace: dict): | |
| adtc_class = super().__new__(mcs, name, bases, namespace) | |
| if "__is_adt_variant__" in namespace: | |
| if namespace["__is_adt_variant__"]: | |
| return adtc_class |
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
| """ | |
| This example showcases postgres features | |
| """ | |
| from tortoise import Tortoise, fields, run_async | |
| from tortoise.models import Model | |
| from tortoise.backends.asyncpg.executor import AsyncpgExecutor | |
| from tortoise.backends.asyncpg.client import AsyncpgDBClient | |
| import logging | |
| import copy |
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
| var names = ["[email protected]"] | |
| function add_user(email) { | |
| //replace id with your element id, it changes every time opened. | |
| var element = document.getElementById("azc-form-guid-b7296a20-57fa-4592-bc1c-f15001a5c063-for"); | |
| var ev = new Event('input', { bubbles: true}); | |
| ev.simulated = true; | |
| element.value = email; | |
| element.dispatchEvent(ev); | |