Skip to content

Instantly share code, notes, and snippets.

@makotot
makotot / note.md
Last active February 28, 2024 17:14
ui component architecture

Resources

@makotot
makotot / note.md
Last active December 11, 2023 17:24
next-to-astro
@makotot
makotot / vscode-ext.md
Last active November 23, 2023 03:08
vscode-ext
@makotot
makotot / figma-rest-api.md
Last active November 9, 2023 15:39
figma rest api

figma REST apiについて

  • https://www.figma.com/developers/api
    • REST APIなのかFigma APIなのか
      • Figma APIぽい
    • Figma's mission is to make design accessible to everyone.

    • Figma APIは読み取りとインタラクション?をサポートしている
    • オブジェクトやレイヤーのプロパティーを抽出して、Figmaの外部で扱うことができる
    • 認証
      • アクセストークン or OAuth2
        • パーソナルアクセストークンを生成するのがAccount Settingsからできる
@makotot
makotot / learn-tw.md
Last active December 9, 2023 17:24
learn tailwind
@makotot
makotot / issue.md
Last active October 27, 2023 14:41
react-query-issue
@makotot
makotot / readme.md
Last active October 22, 2023 14:31
test gistpad

test ok

@makotot
makotot / .env
Last active April 5, 2023 14:03
SpreadSheet に書き込むscript
# Ref: https://zenn.dev/catnose99/scraps/2d0abd8f32f91e#comment-6936e4d21939b4
SHEET_ID='foo' # スプレッドシートのURLに含まれる文字列
GOOGLE_SERVICE_ACCOUNT_EMAIL='foo@bar.iam.gserviceaccount.com' # サービスアカウントのアドレス
GOOGLE_PRIVATE_KEY='-----BEGIN PRIVATE KEY-----\nabcdefg...' # サービスアカウントのkeyのJSONに含まれる`"private_key"`の値をそのままコピペする
@makotot
makotot / articleStats.js
Created July 27, 2022 15:54
zennのコンテンツのrepoで記事のfrontmatterなどの情報を取得するjs
import { globby } from "globby";
import matter from "gray-matter";
import fs from "node:fs";
const articles = await globby(["./articles/*.md"]);
const articleStats = articles.map((article) => {
const content = fs.readFileSync(article, { encoding: "utf-8" });
return {
@makotot
makotot / invariantErrorCodes.js
Created January 19, 2021 07:09
@apollo/client/invariantErrorCodes.js (v3.3.7)
cat node_modules/@apollo/client/invariantErrorCodes.js
// This file is meant to help with looking up the source of errors like
// "Invariant Violation: 35" and is automatically generated by the file
// @apollo/client/config/processInvariants.ts for each @apollo/client
// release. The numbers may change from release to release, so please
// consult the @apollo/client/invariantErrorCodes.js file specific to
// your @apollo/client version. This file is not meant to be imported.
{
"@apollo/client version": "3.3.7",