Rook

The note-taking app
for developers

Rich text and code blocks, syntax highlighting, and various themes. Available for macOS.

Free to download. macOS 14+.

Rook
Notebooks
+
CLI Quick Refs3
kubectl quick ref
Docker commands
Git workflows
Work Notes2
Aa
B
I
U
S
</>
{ }

kubectl quick ref

Commands for managing context, pods, deployments.

Contexts

bash
1 kubectl config get-contexts
2 kubectl config use-context <name>
3 kubectl config current-context

Pods

bash
1 kubectl get pods -n <namespace>
2 kubectl logs <pod-name> --tail=100 -f
3 kubectl exec -it <pod-name> -- /bin/sh

Deployments

bash
1 kubectl rollout restart deployment <name>
2 kubectl rollout status deployment <name>
3 kubectl delete pod <pod-name> --grace-period=0
SwiftPythonTypeScriptGoRust

Code Blocks

17 languages with syntax highlighting

HBI{}

Rich Text + Code

Headings, lists, todos, code blocks

5 Themes

Dark, Light, Terminal, Paper, Midnight

Local & Private

No cloud, no account, your machine

Themes

Five built-in themes, each with its own syntax highlighting

Rook
Notebooks
+
DSA Practice3
Binary Search
Two Pointers
BFS / DFS
System Design2
Aa
B
I
U
S
</>
{ }

Binary Search

A divide-and-conquer algorithm that locates a target in a sorted array by repeatedly halving the search space. Runs in O(log n) time and O(1) space.

python
1 def binary_search(arr, target):
2 lo, hi = 0, len(arr) - 1
3 while lo <= hi:
4 mid = lo + (hi - lo) // 2
5 if arr[mid] == target:
6 return mid
7 elif arr[mid] < target:
8 lo = mid + 1
9 else:
10 hi = mid - 1
11 return -1

Shortcuts

All the usual suspects, and a few more

New block
Code block
Sidebar
\
New note
N
Search
F
Multi-cursor
Click
Rook

Get Rook

For people who write prose and code.
Free, local, no account needed.

Requires macOS 14 Sonoma or later.