TODO: setup SSL.
This is a quick guide on how to setup domain and infinite subdomains, in a case where, for example, you may have one subdomain for each client.
Starting from this http://stackoverflow.com/a/39646701
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
| /* | |
| * Usage | |
| * let cursor = Test.find().sort({ name: 1 }).cursor(); | |
| const get = makeGen(cursor, 100); | |
| let first100 = await get.next(); | |
| console.log(first100.value.length); | |
| https://gist.github.com/lineus/3f7d826a21796129db968d6590c93faa | |
| */ | |
| export async function* batchCursor(c, n) { | |
| const cursor = c; |
TODO: setup SSL.
This is a quick guide on how to setup domain and infinite subdomains, in a case where, for example, you may have one subdomain for each client.
Starting from this http://stackoverflow.com/a/39646701
| { | |
| "scripts": { | |
| "build": "tsup", | |
| "dev": "yarn build --onSuccess \"yarn start\"", | |
| "dev:watch": "yarn dev --watch", | |
| "start": "node dist/index.js", | |
| }, | |
| "devDependencies": { | |
| "tsup": "^5.11.13", | |
| "typescript": "4.5.5" |
| function Trampoline(func) { | |
| this.task = new Task(func); | |
| } | |
| Trampoline.prototype.step = function() { | |
| if (!this.task) return; | |
| this.task = this.task.cont(); | |
| if (this.task) this.task.nextStep = this.step.bind(this); | |
| }; |
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")References:
| [ | |
| { | |
| "constant": true, | |
| "inputs": [], | |
| "name": "name", | |
| "outputs": [ | |
| { | |
| "name": "", | |
| "type": "string" | |
| } |
| pragma solidity ^0.4.19; | |
| contract ERC20Basic { | |
| string public constant name = "ERC20BasicName"; | |
| string public constant symbol = "BSC"; | |
| uint8 public constant decimals = 18; | |
| event Approval(address indexed tokenOwner, address indexed spender, uint tokens); |
To remove a submodule you need to: