Skip to content

Commit e873b56

Browse files
committed
Update consolidated snippets
1 parent 0615529 commit e873b56

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

public/consolidated/all_snippets.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
[
2+
{
3+
"language": "cpp",
4+
"categoryName": "Basics",
5+
"snippets": [
6+
{
7+
"title": "Hello, World!",
8+
"description": "Prints Hello, World! to the terminal.",
9+
"code": [
10+
"#include <iostream> // Includes the input/output stream library",
11+
"",
12+
"int main() { // Defines the main function",
13+
" std::cout << \"Hello, World!\" << std::endl; // Outputs Hello, World! and a newline",
14+
" return 0; // indicate the program executed successfully",
15+
"}"
16+
],
17+
"tags": [
18+
"cpp",
19+
"printing",
20+
"hello-world",
21+
"utility"
22+
],
23+
"author": "James-Beans"
24+
}
25+
]
26+
},
227
{
328
"language": "cpp",
429
"categoryName": "String Manipulation",
@@ -348,6 +373,26 @@
348373
}
349374
]
350375
},
376+
{
377+
"language": "javascript",
378+
"categoryName": "Basics",
379+
"snippets": [
380+
{
381+
"title": "Hello, World!",
382+
"description": "Prints Hello, World! to the terminal.",
383+
"code": [
384+
"console.log(\"Hello, World!\"); // Prints Hello, World! to the console"
385+
],
386+
"tags": [
387+
"javascript",
388+
"printing",
389+
"hello-world",
390+
"utility"
391+
],
392+
"author": "James-Beans"
393+
}
394+
]
395+
},
351396
{
352397
"language": "javascript",
353398
"categoryName": "Array Manipulation",
@@ -922,6 +967,26 @@
922967
}
923968
]
924969
},
970+
{
971+
"language": "python",
972+
"categoryName": "Basics",
973+
"snippets": [
974+
{
975+
"title": "Hello, World!",
976+
"description": "Prints Hello, World! to the terminal.",
977+
"code": [
978+
"print(\"Hello, World!\") # Prints Hello, World! to the terminal."
979+
],
980+
"tags": [
981+
"python",
982+
"printing",
983+
"hello-world",
984+
"utility"
985+
],
986+
"author": "James-Beans"
987+
}
988+
]
989+
},
925990
{
926991
"language": "python",
927992
"categoryName": "String Manipulation",
@@ -1416,6 +1481,28 @@
14161481
}
14171482
]
14181483
},
1484+
{
1485+
"language": "rust",
1486+
"categoryName": "Basics",
1487+
"snippets": [
1488+
{
1489+
"title": "Hello, World!",
1490+
"description": "Prints Hello, World! to the terminal.",
1491+
"code": [
1492+
"fn main() { // Defines the main running function",
1493+
" println!(\"Hello, World!\"); // Prints Hello, World! to the terminal.",
1494+
"}"
1495+
],
1496+
"tags": [
1497+
"rust",
1498+
"printing",
1499+
"hello-world",
1500+
"utility"
1501+
],
1502+
"author": "James-Beans"
1503+
}
1504+
]
1505+
},
14191506
{
14201507
"language": "rust",
14211508
"categoryName": "String Manipulation",

0 commit comments

Comments
 (0)