Skip to content

Instantly share code, notes, and snippets.

View aertoria's full-sized avatar

Ethan Wang aertoria

View GitHub Profile
@gsalgado
gsalgado / go-ethereum-code-walkthrough.md
Last active June 20, 2022 11:42
Code Walkthrough for new block in go-ethereum

Following a block from the network socket to the hard drive

Note: All links to the code are based on a fixed revision, so we can link line numbers. Code might have changed by now, nonetheless use these revisions when doing updates to this document.

Preconditons

  • the app was configured and started
  • all services registered
  • the discovery protocol discovered some nodes
  • the peermanager successfully connected a node
  • established an encrypted multiplexed session
@aertoria
aertoria / .block
Created May 4, 2016 05:22 — forked from mbostock/.block
Tidy Tree
license: gpl-3.0
border: no
height: 2000
@aertoria
aertoria / .block
Created May 4, 2016 05:21 — forked from mbostock/.block
Radial Dendrogram
license: gpl-3.0
border: no
height: 900
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 4, 2024 23:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@jvns
jvns / examples.md
Last active June 12, 2022 11:10
Rust examples

Strings

The std::str documentation is also quite good.

// Create a string from a literal
let hello: &'static str = "Hello!";
let hello2: &str = "Hello!";