Home

Awesome

NSC

Number System Converter -- an Alfred extension


Author: Hans-Helge Bürger Date: 29. March 2017 Version: v2.4 Licence: Attribution 3.0 Unported (CC BY 3.0)

Quick Installation

Download NSC v2.4


Introduction

NSC is a little Alfred workflow to convert a number into another number system. I study computer science and therefore I daily deal with different number systems. The most common ones are probably binary, octal, decimal, and hexadecimal but I got tiered to calculate them by hand, calculator or a webpage. Alfred is only a key stroke away and so I started programming this workflow.

I started to learn Python and to pratice that the new Alfred 2 workflow is written in Python. So your welcome to send a pull request if you have any improvement done.

Functions

Like I mentioned above, you can convert numbers. In the first version I implemented binary, decimal, and hexadecimal. And you can even convert any number from any system into another.

Usage

But how can I use NSC? It is really simple.

You call NSC with the different keywords (this is new in v2.0) and according the number you want to convert. E.g. if you want to convert a decimal number you just type decimal and the number. Alfred 2 will show instantly the converted number in binary, octal, and even hex.

So the 4 basic keywords are:

and it looks like that:

screenshot of Alfred converting the decimal number 42

I really love this feature, displaying live updates in Alfred :)

Beside these 4 keywords a fifth is implemented: convert. It is used if a number needs to be converted which is no to base 2, 8, 10 or 16. It uses the following syntax:

`convert` `number` `base of number` `base of new system`

Imagine it like a sentence: Convert number X with base B into system with base Y

screenshot of Alfred converting the number 42 with base 6 into base 4 system Convert 42 with base 6 into system with base 4

Clipboard and Notification

Another cool feature of Alfred 2 is that you can pass arguments to other parts of your workflow. In case of NSC, if you select a result and click enter, the number will be copied to your clipboard and a notification will pop up.

Examples


Changelog

v2.4

v2.3

v2.2

v.2.1

v2.01

v2.0

v1.4

v1.3

v1.2

v1.1

v1.0

Roadmap


Licensing

See LICENSE