Skip to content

Commit 750abfe

Browse files
Merge pull request #124 from chaitanya-jvnm/update-csharp-snippet-titles
fix: Correcting Titles for c# Snippets
2 parents 641f0ee + d2fdbc3 commit 750abfe

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

public/consolidated/csharp.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"categoryName": "Guid Utilities",
2222
"snippets": [
2323
{
24-
"title": "Hello, World!",
24+
"title": "Generate GUID",
2525
"description": "Generates a new GUID",
2626
"author": "chaitanya-jvnm",
2727
"tags": [
@@ -34,7 +34,7 @@
3434
"code": "public static string GenerateGuid() {\n return Guid.NewGuid().ToString();\n}\n"
3535
},
3636
{
37-
"title": "Hello, World!",
37+
"title": "Validate GUID",
3838
"description": "Checks if a string is a valid GUID.",
3939
"author": "chaitanya-jvnm",
4040
"tags": [
@@ -52,7 +52,7 @@
5252
"categoryName": "Jwt Utilities",
5353
"snippets": [
5454
{
55-
"title": "Hello, World!",
55+
"title": "Decode JWT",
5656
"description": "Decodes a JWT.",
5757
"author": "chaitanya-jvnm",
5858
"tags": [
@@ -65,7 +65,7 @@
6565
"code": "/// <summary>\n/// Decodes the JWT\n/// <summary>\npublic static string DecodeJwt(string token) {\n return new JwtSecurityTokenHandler().ReadJwtToken(token).ToString();\n}\n\n//Example\nstring token = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\";\n\nstring decodedJwt = DecodeJwt(token);\n\nConsole.WriteLine(decodedJwt); //Prints {\"alg\":\"HS256\",\"typ\":\"JWT\"}.{\"sub\":\"1234567890\",\"name\":\"John Doe\",\"iat\":1516239022}\n"
6666
},
6767
{
68-
"title": "Hello, World!",
68+
"title": "Generate JWT",
6969
"description": "Generates a new JWT.",
7070
"author": "chaitanya-jvnm",
7171
"tags": [
@@ -78,7 +78,7 @@
7878
"code": "public static string GenerateJwt(string secret, string issuer, string audience, int expirationMinutes) {\n var securityKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(secret));\n var credentials = new SigningCredentials(securityKey, SecurityAlgorithms.HmacSha256);\n var token = new JwtSecurityToken(issuer, audience, null, expires: DateTime.UtcNow.AddMinutes(expirationMinutes), signingCredentials: credentials);\n return new JwtSecurityTokenHandler().WriteToken(token);\n}\n"
7979
},
8080
{
81-
"title": "Hello, World!",
81+
"title": "Validate JWT",
8282
"description": "Validates a JWT.",
8383
"author": "chaitanya-jvnm",
8484
"tags": [
@@ -114,7 +114,7 @@
114114
"categoryName": "String Utilities",
115115
"snippets": [
116116
{
117-
"title": "Hello, World!",
117+
"title": "Capitalize first letter",
118118
"description": "Makes the first letter of a string uppercase.",
119119
"author": "chaitanya-jvnm",
120120
"tags": [

snippets/csharp/guid-utilities/generate-guid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Hello, World!
2+
title: Generate GUID
33
description: Generates a new GUID
44
author: chaitanya-jvnm
55
tags: c#,guid,generate,utility

snippets/csharp/guid-utilities/validate-guid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Hello, World!
2+
title: Validate GUID
33
description: Checks if a string is a valid GUID.
44
author: chaitanya-jvnm
55
tags: c#,guid,validate,utility

snippets/csharp/jwt-utilities/decode-jwt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Hello, World!
2+
title: Decode JWT
33
description: Decodes a JWT.
44
author: chaitanya-jvnm
55
tags: c#,jwt,decode,utility

snippets/csharp/jwt-utilities/generate-jwt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Hello, World!
2+
title: Generate JWT
33
description: Generates a new JWT.
44
author: chaitanya-jvnm
55
tags: c#,jwt,generate,utility

snippets/csharp/jwt-utilities/validate-jwt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Hello, World!
2+
title: Validate JWT
33
description: Validates a JWT.
44
author: chaitanya-jvnm
55
tags: c#,jwt,validate,utility

snippets/csharp/string-utilities/capitalize-first-letter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Hello, World!
2+
title: Capitalize first letter
33
description: Makes the first letter of a string uppercase.
44
author: chaitanya-jvnm
55
tags: c#,string,capitalize,utility

0 commit comments

Comments
 (0)