Skip to content

Instantly share code, notes, and snippets.

@endam
endam / custom_policy
Last active August 17, 2017 02:31
[IsaB]install_http2
{
"Version":"2012-10-17",
"Statement":[
{
"Effect":"Allow",
"Action":[
"elasticloadbalancing:RegisterTargets",
"elasticloadbalancing:DeregisterTargets",
"elasticloadbalancing:DescribeTargetHealth"
],
@endam
endam / .travis.yml
Last active October 1, 2017 08:54
.travis.yml (berks package & s3 upload)
branches:
only:
- master
- stage
- develop
addons:
artifacts:
s3_region: "ap-northeast-1"
paths:
- $TRAVIS_BRANCH.tar.gz
@endam
endam / dep-manager.ts
Created April 29, 2019 05:45
Dep in Angular
import { NgModule } from '@angular/core';
import 'reflect-metadata';
export class DepManager {
static requiredProps = ['declarations', 'imports'];
static setDeps(component: Object, deps: NgModule): void {
Reflect.defineMetadata('deps', deps, component);
}
static getDeps(component: Object): NgModule {
@endam
endam / Convert.js
Created April 10, 2020 11:47
Backlog wiki記法→Markdown記法 一括変換スクリプト
class Convert {
execute(val) {
const
codes = [];
const
quotes = [];
const
paragraphs = [];
const
textLevelSemanticsCheck = (content) => {