Skip to content

Instantly share code, notes, and snippets.

@MSakamaki
MSakamaki / sample.mjs
Last active April 25, 2019 11:05
dynamic loading
export const sample = () => console.log('CALL MJS');
@MSakamaki
MSakamaki / api-concept.txt
Last active March 1, 2019 10:50
rest api
GET /datas <= データ一覧取得
GET /datas/id <= 1件のデータ取得
GET /datas/id/column <= 特定データの特定項目を取得
POST /datas <= データ発生 (ここでIDができる)
PUT /datas/id <= 特定データの一括更新
PUT /datas/id/column <= 特定データを1個だけ更新
PATCH /datas/id <= 特定データの部分項目を更新
DELETE /datas/id <= 特定のリソース削除
@MSakamaki
MSakamaki / _tsconfig.json
Last active January 7, 2019 02:54
deno.scripts
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist",
"sourceMap": true,
"declaration": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
@MSakamaki
MSakamaki / MEMO.md
Created October 3, 2018 05:19
mock library specs memo

feature

use decorators api

@MSakamaki
MSakamaki / schematics.md
Last active March 30, 2018 06:48
@angular/devkit

command

generate schematics and development

# generate new schematics project
schematics blank --name=[schematics Name]
@MSakamaki
MSakamaki / README.md
Last active February 2, 2017 09:27
shell tips

ファイル一斉置換

bef="before"
aft="after"

for fname in *${bef}*;  do 
mv "$fname" `echo $fname | sed s/$bef/$aft/`; 
done
@MSakamaki
MSakamaki / IPAddress.md
Last active November 15, 2016 02:29
javascript ecmascript typescript
/** IPアドレス */
export interface IIPAddress {
  /** 第1オクテット */
  octet1: number,
  /** 第2オクテット */
  octet2: number,
@MSakamaki
MSakamaki / README.md
Last active August 7, 2016 08:07
RxJS
@MSakamaki
MSakamaki / README.md
Last active April 23, 2016 03:25
MONAD

モナド則

  1. bind(unit(x), f) ≡ f(x)
  2. bind(m, unit) ≡ m
  3. bind(bind(m, f), g) ≡ bind(m, x ⇒ bind(f(x), g))

JavaScript Primise Monado

@MSakamaki
MSakamaki / HC-SR501.md
Last active April 9, 2016 07:41
CHIRIMEN MEMO

HC-SR501

人感センサー

SPEC

Bower Component