Skip to content

Instantly share code, notes, and snippets.

View SpicyKitten's full-sized avatar

SpicyKitten

  • Hidden for all eternity.
View GitHub Profile
@SpicyKitten
SpicyKitten / count_dag_paths.py
Created April 2, 2024 03:34
Counts paths on a DAG that cannot be combined via edges any further
from __future__ import annotations
from collections import Counter
from typing import Union, Optional
from functools import total_ordering
from graphviz import Digraph
import random
@total_ordering
@SpicyKitten
SpicyKitten / TODO.md (raw)
Last active February 24, 2024 04:29
TODO list plus auto-updater for Obsidian Markdown editor
#### `$= "[" + moment().format("MMM DD, yyyy") + ":: TODO list]"`
- [ ] Something that's due tomorrow @@ tomorrow
- [ ] Something that's due in a week @@ in a week
- [ ] Something that's not due for a long long time
- [ ] Something that's due today @@ today
- [ ] Something that needs to be checked every day
- [ ] Something that was due yesterday @@ yesterday
```dataviewjs
const chrono = await self.require.import("https://esm.sh/chrono-node");