Skip to content

Instantly share code, notes, and snippets.

View kenmori's full-sized avatar
🏠
Working from home

KenjiMorita kenmori

🏠
Working from home
View GitHub Profile
@kenmori
kenmori / 【Jest x redux-thunk x TypeScript】test example.md
Last active February 29, 2020 12:04
これ。【Jest x redux-thunk x GraphQL x TypeScript】test example

【Jest x redux-thunk x TypeScript】 test example

I was looking for an example. Just a little less,

so leave what you actually wrote.

This is different from the official.

@kenmori
kenmori / JavaScriptを学びたての方に向けた「JavaScriptの課題」.md
Last active January 25, 2021 06:40
JavaScriptを学びたての方に向けた「JavaScriptの課題」

JavaScriptを学びたての方に向けた「JavaScriptが使えるようになる課題」

WIP

  • リアルな現場で使うもの

DOM操作

API通信

@kenmori
kenmori / cloudSettings
Last active November 16, 2021 15:49
【急に....!!解決する方法(画像付き)】 Please make sure you have the correct access rights and the repository exists.
{"lastUpload":"2021-11-16T15:49:01.907Z","extensionVersion":"v3.4.3"}
@kenmori
kenmori / Create an object from an array with multiple ids, using the id as a key and knowing how many identical ids each have.md
Last active February 8, 2022 14:56
Create an object from an array with multiple ids, using the id as a key and knowing how many identical ids each have

Create an object from an array with multiple ids, using the id as a key and knowing how many identical ids each have

function createOrder(organization: TreeOrganization, valueId: number): number {
    return organization.values
        .map(o => o.parentId)
        .reduce((a, c) => {
 return a[`${c}`] === undefined
@kenmori
kenmori / TwitterWithMarkDown.md
Last active April 20, 2023 18:27
How to write a Twitter link in Markdown

How to write a Twitter link in Markdown

Twitter URL


[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/bukotsunikki.svg?style=social&label=Follow%20%40bukotsunikki)](https://twitter.com/bukotsunikki)

author

@kenmori
kenmori / ReduxStyleGuide.md
Last active January 19, 2020 22:49
Redux StyleGuideまとめ

ReduxStyleGuide

Priority A Rules: Essential

Do Not Mutate State

stateを変化させない

Priority B: Strongly Recommended

@kenmori
kenmori / how_to_reduce.md
Last active June 21, 2021 08:27
【わかりやすい】Array#reduceの使い方。reduceに強くなる記事。how to reduce

【鍛えよう】reduceの使い方。reduceに強くなる記事。how to use reduce

reduceって何?

  • reduceとはArrayが持つメソッド

使い方は?

["a", "b"]
@kenmori
kenmori / Handling for union when you do not want to use type guard.md
Last active January 4, 2020 00:42
Handling for union when you do not want to use type guard

Handling for union when you do not want to use type guard

You need to type gurd this

type Uni = "A" | "B"

type Fa = {
    contentType : Uni
}
@kenmori
kenmori / 2020年目標設定.md
Last active January 1, 2020 02:11
2020年目標設定

2020年目標設定

仕事面

  • 売り上げを上げる(25%アップさせたい)
  • 案件を5つ持つ
  • 違う言語の習得&実務

健康面

  • ロードレースの大会に出たい(15km)