Skip to content

Conversation

@Mdanial01
Copy link

@Mdanial01 Mdanial01 commented Oct 13, 2025

Description

Please include a summary of the changes and the related issue. Please also include relevant
motivation and context. List any dependencies that are required for this change.

This PR adds a new SplashKit utility usage example demonstrating how to convert a
hexadecimal string into its binary representation using the built-in hex_to_bin (Python/C++)
and HexToBin (C#) functions. It includes multi-language examples for Python, C++,
and C# (both OOP and top-level).

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation (update or new)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Verified output in Python using SplashKit
  • Verified output in C++ using SplashKit
  • Verified output in C# (OOP and top-level) using SplashKit

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Firefox
  • npm run build
  • npm run preview

Checklist

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Folders and Files Added/Modified

  • Added:
    • public/usage-examples/utilities/hex_to_bin-1-example.py
    • public/usage-examples/utilities/hex_to_bin-1-example.cpp
    • public/usage-examples/utilities/hex_to_bin-1-example-oop.cs
    • public/usage-examples/utilities/hex_to_bin-1-example-top-level.cs
    • public/usage-examples/utilities/hex_to_bin-1-example.txt

Additional Notes

This example demonstrates the use of SplashKit’s hex_to_bin / HexToBin functions
across multiple languages, providing a consistent, minimal, and easy-to-follow example
for developers.
hex_to_bin

@netlify
Copy link

netlify bot commented Oct 13, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 2fe7d71
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68ec4571c44a3100087d29f2
😎 Deploy Preview https://deploy-preview-670--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Mdanial01 Mdanial01 changed the base branch from main to usage-examples October 13, 2025 00:19
Copy link

@222448082Ashen 222448082Ashen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description

This PR adds new usage example files for the hex_to_bin function in C++, Python, and C# (Top-level and OOP).

The examples:

  • Show simple and direct usage of hex_to_bin
  • Use the same test value (1F3A) in all files
  • Produce the same output format across all languages
  • Follow SplashKit usage style

No new dependencies are required.


Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

How Has This Been Tested?

The code was verified by:

  • Reviewing the PR #670 diff directly
  • Checking correct API usage in all languages
  • Confirming the same input and output format in each file

Test method:

  • Manual code review

  • Logic verification only (no UI elements used)

  • Tested in latest Chrome

  • Tested in latest Firefox

  • npm run build

  • npm run preview


Checklist

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

If modified config files

  • package.json
  • astro.config.mjs
  • netlify.toml
  • docker-compose.yml
  • custom.css

Folders and Files Added/Modified

  • Added:

    • public/usage-examples/utilities/hex_to_bin-1-example.cpp
    • public/usage-examples/utilities/hex_to_bin-1-example.py
    • public/usage-examples/utilities/hex_to_bin-1-example-top-level.cs
    • public/usage-examples/utilities/hex_to_bin-1-example-oop.cs
  • Modified:

    • None

Additional Notes

  • All examples follow the same simple structure.
  • The function usage is clear and easy to learn.
  • The files match SplashKit coding style.
  • This PR has been reviewed and approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants