Skip to content

Instantly share code, notes, and snippets.

View ryamakuchi's full-sized avatar
🐥
ひよこ

rry ryamakuchi

🐥
ひよこ
View GitHub Profile
@azu
azu / TypeScriptの設定の良し悪し.md
Last active June 27, 2024 06:48
TypeScriptの設定の良し悪し

tsconfig.json の設定についてのメモ書きです。

Node.jsのバージョンごとの設定

target は 変換後のコードのECMAScriptバージョンを指定する たとえば、Node.js 14はES2020をサポートしている。そのため、Node.js 14向けのコード(サーバなど)ならtarget: "ES2020"を指定することで、余計なTranspileが省かれててコードサイズや実行時間が最適化される。

@shilman
shilman / storybook-react-docgen-typescript.md
Last active January 23, 2024 03:43
Storybook React props handling for Typescript

NOTE: This was written in 2020 and has been superseded by docs at storybook.js.org

Storybook React props handling for Typescript

We've flip-flopped on prop table handling for React components written in Typescript. This document attempts to be a final reference for anybody who's been trying to follow along.

TLDR:

SB6 uses react-docgen-typescript by default. We hope to use react-docgen in SB7. The whole experience led to zero-config in SB6, so it's now a one-line change main.js to switch between the two.

@retorillo
retorillo / css-position-and-z-index.md
Created November 25, 2015 07:38
CSSのpositionとz-indexの関係 (absoluteやfixedよりもstaticを手前に表示する)

CSSのpositionとz-indexの関係 (absoluteやfixedよりもstaticを手前に表示する)

positionの種類

CSSのpositionは、static, absolute, relative, fixedがあり、デフォルトではstaticです。

要素のZ軸上での重なりは必ずしも、z-indexの値や、HTMLで記述した順番通りではなく、 このpositionとも密接な関係があります。

positionとZ軸上の位置関係

@taea
taea / design_menter.md
Last active August 13, 2019 18:42
エンジニア向けデザインメンター(謎)をはじめて、2〜3ヶ月が経ちました

エンジニア向けデザインメンター(謎)をはじめて、2〜3ヶ月が経ちました

@ken_c_lo in 町田の部屋 新年会 2014-03-30

何やるの?

実際のプロジェクトに入って、エンジニアのデザイン業を支援する

デザインといっても広義。(案件のフェーズや人によってそれぞれ違うことやってる)

  • HTML
  • CSS
  • ビジュアルデザイン