From 587fef8ea1e0669a6a9a03464122711627556b60 Mon Sep 17 00:00:00 2001 From: giuliano Date: Sun, 4 Aug 2024 07:28:51 +0200 Subject: [PATCH] Archive articles with monolith --- .gitignore | 1 + Taskfile.yaml | 2 +- src/algs.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3006b27..b16108f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ book/ +arc/ diff --git a/Taskfile.yaml b/Taskfile.yaml index 1077687..c9a7e81 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -11,7 +11,7 @@ tasks: - mdlinkcheck --dir ./src/ | grep -v 200 archive: cmds: - - for i in $(grep -rEo --no-filename "https?://[^][ )]+" src/*.md); do sed -e 's/^http:\/\///g' -e 's/^https:\/\///g' -e 's/\//-/g' <<<$i ; done + - for i in $(grep -rPo --no-filename "https?:\/\/.*([^\)])(?!\1)" src/*.md); do filename=$(basename ./arc/$i).html; monolith $i -e -o ./arc/$filename ; done lazy-push: cmds: - git add . && git commit -m "Dump links" && git push diff --git a/src/algs.md b/src/algs.md index bc802b0..52d1834 100644 --- a/src/algs.md +++ b/src/algs.md @@ -1,7 +1,7 @@ ## Algorithms & Data Structures - [Asymptotic notation](https://www.khanacademy.org/computing/computer-science/algorithms/asymptotic-notation/a/asymptotic-notation) -- Sedgewick & Wayne, Algorithms [1](https://www.coursera.org/learn/algorithms-part1) + [2](https://www.coursera.org/learn/algorithms-part2) +- Sedgewick & Wayne, Algorithms (https://algs4.cs.princeton.edu/home) - Kopec, Classic Computer Science Problems in Java - [Open Data Structures](http://opendatastructures.org/ods-java/) - [Data Structures & Algorithms I Used Working at Tech Companies](https://blog.pragmaticengineer.com/data-structures-and-algorithms-i-actually-used-day-to-day/)