Skip to content

Instantly share code, notes, and snippets.

@cm-wada-yusuke
Last active January 28, 2021 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cm-wada-yusuke/1206232fa03fcfd66c4a5ab7b4bb9f6d to your computer and use it in GitHub Desktop.
Save cm-wada-yusuke/1206232fa03fcfd66c4a5ab7b4bb9f6d to your computer and use it in GitHub Desktop.
{
"name": "Asciidoctor",
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
"image": "cmwadayusuke/asciidoctor-jp-aws-cli-ubuntu:latest",
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": null,
"asciidoc.use_asciidoctor_js": false,
"asciidoc.asciidoctor_command": "asciidoctor -r asciidoctor-diagram",
"asciidoc.asciidoctorpdf_command": "asciidoctor-pdf -r asciidoctor-pdf-cjk -r asciidoctor-diagram",
"asciidoc.preview.attributes": {
"stylesheet": "foundation.css",
"stylesdir": "/stylesheets/",
"pdf-style": "default-theme.yml"
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"asciidoctor.asciidoctor-vscode",
"letrieu.expand-region",
"42crunch.vscode-openapi"
]
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line to run commands after the container is created - for example installing curl.
// "postCreateCommand": "apt-get update && apt-get install -y curl",
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}

サンプルドキュメント

Sample

Hello, everyone. こんにちは。

function sourceKeyQuery(key: string): QueryInput {
    return {
        TableName: userTalbe,
        IndexName: 'sourceKey-updateAtMillis-index',
        KeyConditionExpression: '#sourceKey = :sourceKey',
        ExpressionAttributeNames: {
            '#sourceKey': 'sourceKey',
        },
        ExpressionAttributeValues: {
            ':sourceKey': key,
        },
        ScanIndexForward: false,
        Limit: 20,
    };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment