Skip to content

Instantly share code, notes, and snippets.

View y13i's full-sized avatar
☘️

Yoriki Yamaguchi y13i

☘️
View GitHub Profile
@y13i
y13i / file0.txt
Last active June 3, 2017 08:38
Promise をリトライする何かを作った ref: http://qiita.com/y13i/items/6ba3c8849c8af80d2dde
$ npm install --save retryx
AWSTemplateFormatVersion: "2010-09-09"
Description: "Example template including Cognito Identity Pool and User Pool."
Parameters:
EmailIdentityArn:
Type: String
Resources:
UserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName:
@y13i
y13i / file0.txt
Last active April 25, 2017 20:17
Async Functions はなぜ良いのか ref: http://qiita.com/y13i/items/76b46d19113b912f995f
次はうまくやるでしょう: 93
次はうまくやるでしょう: 46
次はうまくやるでしょう: 34
次はうまくやるでしょう: 37
できました: 96
@y13i
y13i / file0.txt
Last active April 26, 2017 19:54
JavaScript の switch っぽい何かを再発明してみた ref: http://qiita.com/y13i/items/2922c68dc4a15eb4f3c3
$ npm install --save switz
@y13i
y13i / test.md
Last active April 20, 2017 14:27
console.log(123);
const a: string = "123"
@y13i
y13i / foo.md
Created April 12, 2017 06:43
アレ

Wikipedia を wiki と略すと発狂する系譜の人間なので、こういった点が気になって仕方がないんだ。

  • EC2 Instance を EC2 と呼ぶ
  • IAM User を IAM と呼ぶ
  • Lambda Function を Lambda と呼ぶ
  • S3 Bucket を S3 と呼ぶ
$ yarn run webpack
@y13i
y13i / if.ts
Last active February 26, 2017 19:17
if statement vs ternary operator
const num = Math.floor(Math.random() * 10);
let evenOrOdd: string;
if (num % 2 === 0) {
evenOrOdd = 'even';
} else {
evenOrOdd = 'odd';
}
FROM node:wheezy
RUN apt-get -y update && \
apt-get -y install git build-essential && \
mkdir -p /app && \
cd /app && \
git clone https://github.com/sourcelair/xterm.js.git && \
cd xterm.js && \
npm install
@y13i
y13i / file0.txt
Last active January 17, 2017 06:24
EC2 Windows インスタンスの Administrator パスワードを取得する ref: http://qiita.com/y13i/items/80d392a0a7689dac2405
$ aws ec2 get-password-data --instance-id i-1234567890abcdef0 --priv-launch-key /path/to/mykey.pem