Git Product home page Git Product logo

chartools's Introduction

CharTools

A small program for HEX-ASCII (or UTF-8) conversion.

This program is converted and improved from one I wrote in Scala as a way of further familiarizing myself with Kotlin, as I'd like to move to Android dev in the future.

Put It On Your Computer!

From Releases

You can download the straight jarfile in releases. Or, if you're feeling particularly picky, you can build it from source

Build From Source

Requires the Kotlin compiler, available via SDKMAN! on MacOS and Linux, or as a direct download on all platforms.

Quick and easy to compile. Clone the repo and go into it:

git clone https://github.com/digital-diplomat/CharTools.git
cd CharTools

Then compile it to a jarfile with kotlinc, making sure to include include the Kotlin runtime (so it can be run in Java…or at all).

kotlinc * -include-runtime -d chartools.jar

It can then be run with java -jar chartools.jar, or on some Linux distros it can be set to executable (chmod +x chartools.jar) and run directly (./chartools.jar).

On Windows and MacOS, if it was set up on Java install, you can also double-click the jarfile in your file explorer to open/run it.

Usage

When invoked without an argument, an interactive session is started which can be used for multiple translations in a row. You can also pass an argument to the program to handle just one conversion:

e(ncode) - Prompts for a string to encode
d(ecode) - Prompts for a space- or comma-separated string of hex values to decode
t(able)  - Prints an ASCII table from 0x20 to 0x7f
f        - Pays respects

For decoding HEX strings, the values can be separated by any number of commas and/or spaces.

Contributing

Please submit a pull request or issue if you have any suggestions for improvement; I'm always looking for new ways to improve my methodology and can always use a bit of guidance!

54 68 61 6e 6b 73 20 66 6f 72 20 64 6f 77 6e 6c 6f 61 64 69 6e 67 21

chartools's People

Contributors

bynux-gh avatar

Stargazers

Morgan Wable avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.