Skip to content

Instantly share code, notes, and snippets.

@MasanoriMT
MasanoriMT / minikube.md
Created July 25, 2018 02:35 — forked from zaru/minikube.md
minikube 導入ドキュメント

インストールと起動

brew cask install minikube
minikube start
@MasanoriMT
MasanoriMT / async_sample.js
Created July 19, 2018 04:33
async/awaitの挙動確認用
//-----
function rejectSometimes() {
return new Promise((resolve, reject) => {
setTimeout(function() {
const judge = Math.random() >= 0.5;
if (judge) {
resolve(Math.random() * 100)
} else {
reject('dao error');
}
@MasanoriMT
MasanoriMT / Mac-setup.md
Last active July 27, 2018 02:49
Mac setup

インストールするもの

  • Xcode
  • Android Studio
  • SorceTree
  • Thunderbird
  • VS Code
  • Docker
  • Apple Configurator 2
  • Slack
@MasanoriMT
MasanoriMT / kubernetes-memo.md
Last active July 26, 2018 05:46
kubernetesメモ

kubernetesに関する覚書

Tutorial(Online)

ブラウザ上でminikubeやkubectlなどの操作を体験できます。

https://kubernetes.io/docs/tutorials/

GCP(GKE)のドキュメントにもチュートリアルがあり、内容充実していそうです。

@MasanoriMT
MasanoriMT / pm_tool.md
Last active July 16, 2018 04:29
プロジェクト管理ツール

管理ツール

ターゲット

〜管理
呼び方様々。

  • プロジェクト管理
  • タスク管理
@MasanoriMT
MasanoriMT / sts.md
Last active May 1, 2018 08:16
STS setup
@MasanoriMT
MasanoriMT / quick_start.md
Last active April 26, 2018 05:51
prettier & vs code
  • 設定ファイル

.prettierrc.jsonを作成する。 例えば以下。

{
  "printWidth": 80,
  "tabWidth": 2,
 "useTabs": false,
@MasanoriMT
MasanoriMT / authorizer.js
Created April 25, 2018 06:10
verify JWT(custom authorizer)
'use strict';
const async = require('async');
const jwksClient = require('jwks-rsa');
const jwt = require('jsonwebtoken');
function getToken(authorizationToken, next) {
const parts = authorizationToken.split(' ');
if (parts.length == 2) {
const scheme = parts[0];
@MasanoriMT
MasanoriMT / diag.md
Created April 10, 2018 14:21 — forked from hashrock/diag.md
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@MasanoriMT
MasanoriMT / Monad.scala
Last active March 22, 2018 08:21
Continuation Monad
import scala.io._
case class Cont[R, A](run: (A => R) => R) {
def map[B](f: A => B): Cont[R, B] =
Cont(k => run(a => k(f(a))))
def flatMap[B](f: A => Cont[R, B]): Cont[R, B] =
Cont(k => run(a => f(a).run(k)))
}