You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replaces Vim date placeholders with VS Code variables for template files
24
+
25
+
#### For Vim/Neovim (UltiSnips)
26
+
```bash
27
+
bash generate_snippets.sh
28
+
```
29
+
30
+
This script:
31
+
- Searches for all `.cpp` files recursively
32
+
- Generates UltiSnips format snippets
33
+
- Outputs to `~/.vim/UltiSnips/cpp/cpp_generate.snippets`
34
+
- Each snippet is prefixed with the filename (without extension)
35
+
36
+
After running the appropriate script, you can use any algorithm by typing its prefix (e.g., `graph_dijkstra_std`) and triggering your editor's autocomplete.
37
+
5
38
## Contents
6
39
7
40
`Command` - Description
@@ -28,12 +61,17 @@ This repository contains templates of useful algorithms and data structures code
28
61
*`misc_unique` - Remove duplicate values from a vector.
29
62
*`misc_y_combinator` - Allows you to define a recursive Lambda function.
30
63
31
-
***Geometry**
32
-
*`2d_geometry_point` - Class Point.
33
-
*`2d_geometry_polygon` - Class Polygon.
34
-
*`2d_geometry_area` - Algorithm that calculates the area of a polygon.
35
-
*`2d_geometry_perimeter` - Algorithm that calculates the perimeter of a polygon.
0 commit comments