Skip to content

Instantly share code, notes, and snippets.

View ssugimoto's full-sized avatar

shigeo sugimoto ssugimoto

View GitHub Profile
@btorresgil
btorresgil / README.md
Last active February 19, 2025 05:51
GitHub Org IP Allow List API Calls

GitHub Org IP Allow List API Calls

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

@azu
azu / TypeScriptの設定の良し悪し.md
Last active February 14, 2025 10:38
TypeScriptの設定の良し悪し

tsconfig.json の設定についてのメモ書きです。

Node.jsのバージョンごとの設定

target は 変換後のコードのECMAScriptバージョンを指定する たとえば、Node.js 14はES2020をサポートしている。そのため、Node.js 14向けのコード(サーバなど)ならtarget: "ES2020"を指定することで、余計なTranspileが省かれててコードサイズや実行時間が最適化される。

@dabit3
dabit3 / SingleTableAppSync.md
Last active February 24, 2023 20:05
GraphQL Single Table Design with DynamoDB and AWS AppSync

GraphQL

GraphQL Schema

type Customer {
  id: ID!
  email: String!
}
# 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 && \
@hboylan
hboylan / lambda-s3-read-write-by-line.js
Last active January 6, 2023 18:38
AWS Lambda function to read and write S3 files by line to perform efficient processing
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
@ymt117
ymt117 / gist:cfe391c57c77d537887f8d5f971d5dbc
Created October 21, 2018 03:42
GitHub Wiki のページ内リンクについて
基本の書き方
[表示名](#ヘッダー名)
----------------
# LINK
- [hoge](#hoge)
- [fuga](#fuga)
### hoge
@r3-yamauchi
r3-yamauchi / App.js
Last active March 3, 2022 16:07
aws-amplify-react の withAuthenticator HOC を日本語化する
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.': "ユーザー名またはパスワードが正しくありません",
@remarkablemark
remarkablemark / Dockerfile
Last active April 29, 2025 20:07
Install node and npm with nvm using Docker.
# 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 \
@biovisualize
biovisualize / index.html
Created June 9, 2011 14:42
Simple D3 tooltip
<!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")