Skip to content

Instantly share code, notes, and snippets.

@hi-ogawa
hi-ogawa / README.md
Last active August 26, 2022 03:52
reading-chromium

reading-chromium

todo

  • building
  • testing
    • unit tests
      • blink
      • content
  • web tests
@hi-ogawa
hi-ogawa / typescript-transformer-example.ts
Created May 29, 2022 13:26
typescript-transformer-api
/* eslint-disable no-console */
import * as fs from "fs";
import * as process from "process";
import * as ts from "typescript";
//
// analyze statements of the following forms:
//
// const someVariable = someFunction(someObjectLiteral)
@hi-ogawa
hi-ogawa / squash-and-merge.sh
Last active April 13, 2022 01:40
squash-and-merge.sh
#!/bin/bash
set -eux -o pipefail
# Usage
# repository=<...> branch=<...> message=<...> bash squash-and-merge.sh
# validate arguments
[ -z "${repository:-}" ] && { echo "required 'repository'"; exit 1; }
[ -z "${branch:-}" ] && { echo "required 'branch'"; exit 1; }
[ -z "${message:-}" ] && { echo "required 'message'"; exit 1; }
@hi-ogawa
hi-ogawa / README.md
Last active April 7, 2022 01:03
mysql
@hi-ogawa
hi-ogawa / README.md
Last active March 30, 2022 23:43
init-monorepo.sh

init-monorepo

TODO

  • we can keep the history under the subdirectory via --to-subdirectory-filter
git filter-repo --source "$tmp_dir/$package" --target "$tmp_dir/$package" --to-subdirectory-filter "packages/$package" --commit-callback "commit.message += b'\n\nPreMonorepoCommit: https://github.com/$repository/commit/' + commit.original_id + b'\n'"
@hi-ogawa
hi-ogawa / README.md
Last active November 8, 2024 08:26
Reading V8

reading v8

todo / summary

  • editor setup
    • compilation database
    • vscode debugger
      • debug cctest
      • debug mjsunit
  • testing
@hi-ogawa
hi-ogawa / README.md
Last active July 2, 2022 03:45
vscode gist auto save

vscode gist auto save

  • .vscode/settings.json
{
  "emeraldwalk.runonsave": {
    "commands": [
      {
 "match": "gists/[^/]+/*",
@hi-ogawa
hi-ogawa / README.md
Last active August 29, 2023 07:49
Reading React

todo / summary

  • dev setup (debugger, testing, ...)
  • build system and package organization
    • patching ReactFiberHostConfig and ReactSharedLibrary (cf. scripts/shared/inlinedHostConfigs.js)
    • rollup, babel, jest configurations
  • hook and rendering lifecycle
    • mount
    • update
    • unmount
@hi-ogawa
hi-ogawa / README.md
Last active February 21, 2022 04:26
Reading PostgreSQL