Skip to content

Instantly share code, notes, and snippets.

@hi-ogawa
hi-ogawa / url-json.ts
Created January 23, 2022 01:43
url-json.ts
/*
URL safe json
cf.
- https://www.json.org/json-en.html
- https://github.com/Sage/jsurl
- https://url.spec.whatwg.org/#application-x-www-form-urlencoded-percent-encode-set
- ASCII alphanumeric, U+002A (*), U+002D (-), U+002E (.), and U+005F (_)
@hi-ogawa
hi-ogawa / README-1-go-ethereum.md
Last active September 25, 2023 16:24
Ethereum ecosystem

go-ethereum

Summary

  • debugger setup
  • main entrypoint
  • rpc handler
  • p2p/eth66 handler
  • new block execution
  • evm
@hi-ogawa
hi-ogawa / README.md
Last active April 15, 2023 17:22
Reading cpython

cpython development

  • misc tips (building, testing, editor setup)
  • module/import system
  • byte code
    • compilation
    • execution
  • generator/coroutine/async/await implementation
  • thread management
    • interpreter initialization
@hi-ogawa
hi-ogawa / README.md
Last active November 28, 2021 05:01
Reading swc

Reading swc

TODO

  • parser/lexer
  • ast
  • transform
  • codegen
  • sourcemap
  • next.js usage
@hi-ogawa
hi-ogawa / README.md
Last active June 3, 2022 04:03
Reading Next.js

Reading Next.js

TODO

  • server handler
    • API
    • SSR
  • client initialization
  • middleware
  • client navigation, prefetch, and data request
@hi-ogawa
hi-ogawa / README.md
Last active July 4, 2024 02:57
archlinux-setup
@hi-ogawa
hi-ogawa / README.md
Created October 17, 2021 03:29
Mypy development

Development

pip install -e .
pip install -r test-requirements.txt

# Run single test
pytest mypy -n0 -v -s -k testNarrowingNestedUnionOfTypedDicts

# Run with debugger
@hi-ogawa
hi-ogawa / README.md
Last active July 19, 2022 03:41
Reading Typescript
@hi-ogawa
hi-ogawa / README.md
Created July 12, 2021 23:35
Build Bitcoin

Separate directories for different build type

./autogen.sh

mkdir build-0 && cd build-0
../configure --without-bdb --prefix=$PWD/install CC=clang CXX=clang++ LDFLAGS=-fuse-ld=lld

mkdir build-1 && cd build-1
../configure --with-gui=qt5 --with-incompatible-bdb --prefix=$PWD/install CC=clang CXX=clang++ LDFLAGS=-fuse-ld=lld