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 / learn-tw.md
Last active December 9, 2023 17:24
learn tailwind
@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 / 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 / expectjs.md
Created November 1, 2012 16:30
expect.jsのREADME.md

Expect.js

should.jsをベースに開発されたBDDアサーションライブラリ。

特徴

  • IE6+, Firefox, Chrome, Safari, Operaで動く

  • 全てのテストフレームワークで使用可能

@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 {