Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67e29f6

Browse files
Merge branch 'dostonnabotov:main' into scss-dark-theme
2 parents 6f3e545 + 3fb7bea commit 67e29f6

38 files changed

+958
-43
lines changed

‎.github/workflows/consolidate-snippets.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ jobs:
3434
git config --global user.name "GitHub Action"
3535
git config --global user.email "action@github.com"
3636
git add public/consolidated/*
37+
git add public/icons/*
3738
git commit -m "Update consolidated snippets"
3839
git push

‎CONTRIBUTING.md‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@ Expected file structure:
8585

8686
```md
8787
/snippets
88-
|- language
89-
|- category-name
90-
|- your-snippet-here.md
88+
|- language
89+
|- category-name
90+
|- your-snippet-here.md
9191
```
9292

93+
> Please do **NOT** add or edit anything in `/public` folder. It will be used for consolidating snippets.
94+
9395
### Editing a Existing Snippet
9496

9597
If you’d like to refine or improve an existing snippet:
@@ -122,9 +124,9 @@ contributors: contributor1, contributor2, your-github-username
122124

123125
3. **Document changes:**
124126

125-
Clearly indicate what you updated and why in your pull request description.
127+
-Clearly indicate what you updated and why in your pull request description.
126128

127-
We want to make sure that original author and contributor(s) are credited for their work.
129+
> We want to make sure that original author and contributor(s) are credited for their work.
128130
129131

130132
### Adding a New Category
@@ -145,10 +147,10 @@ Example structure:
145147

146148
```md
147149
/snippets
148-
|- python
149-
|- file-handling
150-
|- list-manipulation
151-
|- ....
150+
|- python
151+
|- file-handling
152+
|- list-manipulation
153+
|- ....
152154
```
153155

154156
### Adding a New Language

‎README.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ Expected file structure:
7373

7474
```md
7575
/snippets
76-
|- language
77-
|- category-name
78-
|- your-snippet-here.md
76+
|- language
77+
|- category-name
78+
|- your-snippet-here.md
7979
```
8080

81+
> Please do **NOT** add or edit anything in `/public` folder. It will be used for consolidating snippets.
82+
8183
For more details about adding new categories or programming languages, check out the [CONTRIBUTING.md](/CONTRIBUTING.md) file.
8284

8385
## Guidelines for Contributions

‎package-lock.json‎

Lines changed: 38 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"prepare": "husky"
1414
},
1515
"dependencies": {
16+
"framer-motion": "^11.15.0",
1617
"prismjs": "^1.29.0",
1718
"react": "^18.3.1",
1819
"react-dom": "^18.3.1",

‎public/consolidated/_index.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"lang": "CSS",
1616
"icon": "/icons/css.svg"
1717
},
18+
{
19+
"lang": "HASKELL",
20+
"icon": "/icons/haskell.svg"
21+
},
1822
{
1923
"lang": "HTML",
2024
"icon": "/icons/html.svg"

‎public/consolidated/cpp.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
1717
}
1818
]
1919
},
20+
{
21+
"categoryName": "Data Structure Conversion",
22+
"snippets": [
23+
{
24+
"title": "Vector to Queue",
25+
"description": "Convert vector into queue quickly",
26+
"author": "mrityunjay2003",
27+
"tags": [
28+
"cpp",
29+
"data structures",
30+
"queue",
31+
"vector"
32+
],
33+
"contributors": [],
34+
"code": "#include<queue>\n#include<vector>\n#include<deque>\n\nstd::queue<int> vectorToQueue(const std::vector<int>& v) {\n return std::queue<int>(std::deque<int>(v.begin(), v.end()));\n}\n"
35+
}
36+
]
37+
},
2038
{
2139
"categoryName": "Math And Numbers",
2240
"snippets": [

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /