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

Add snippets for Javascript and C #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Mathys-Gasnier merged 5 commits into quicksnip-dev:main from 0xHouss:main
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add C language
  • Loading branch information
0xHouss committed Dec 31, 2024
commit 9c11a708efefc3a07e549da56e5cdf33451626d7
4 changes: 4 additions & 0 deletions public/data/_index.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"lang": "CPP",
"icon": "/icons/cpp.svg"
},
{
"lang": "C",
"icon": "/icons/c.svg"
},
{
"lang": "Rust",
"icon": "/icons/rust.svg"
Expand Down
22 changes: 22 additions & 0 deletions public/data/c.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"categoryName": "Basics",
"snippets": [
{
"title": "Hello, World!",
"description": "Prints Hello, World! to the terminal.",
"code": [
"#include <stdio.h> // Includes the input/output library",
"",
"int main() { // Defines the main function",
" printf(\"Hello, World!\\n\") // Outputs Hello, World! and a newline",
"",
" return 0; // indicate the program executed successfully",
"}"
],
"tags": ["c", "printing", "hello-world", "utility"],
"author": "0xHouss"
}
]
}
]
15 changes: 15 additions & 0 deletions public/icons/c.svg
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /