examples.ts contains example graphql queries and mutations for working with the IP allow list
gql-paginate.ts contains a recursive function example to paginate a graphql query with more than 100 results
tsconfig.json
の設定についてのメモ書きです。
target は 変換後のコードのECMAScriptバージョンを指定する
たとえば、Node.js 14はES2020をサポートしている。そのため、Node.js 14向けのコード(サーバなど)ならtarget: "ES2020"
を指定することで、余計なTranspileが省かれててコードサイズや実行時間が最適化される。
# Pull base image. | |
FROM ubuntu:latest | |
RUN \ | |
# Update | |
apt-get update -y && \ | |
# Install Unzip | |
apt-get install unzip -y && \ | |
# need wget | |
apt-get install wget -y && \ |
const stream = require('stream') | |
const readline = require('readline') | |
const AWS = require('aws-sdk') | |
const S3 = new AWS.S3() | |
// read S3 file by line | |
function createReadline(Bucket, Key) { | |
// s3 read stream | |
const input = S3 |
基本の書き方 | |
[表示名](#ヘッダー名) | |
例 | |
---------------- | |
# LINK | |
- [hoge](#hoge) | |
- [fuga](#fuga) | |
### hoge |
import Amplify from 'aws-amplify'; | |
import aws_exports from './aws-exports'; | |
import { withAuthenticator } from 'aws-amplify-react'; | |
import { I18n } from 'aws-amplify'; | |
Amplify.configure(aws_exports); | |
const dict = { | |
'ja': { | |
'User does not exist.': "ユーザー名またはパスワードが正しくありません", |
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
<!DOCTYPE html> | |
<html > | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
</head> | |
<body> | |
<div class="example_div"></div> | |
<script type="text/javascript"> | |
var tooltip = d3.select("body") | |
.append("div") |