Giter Site home page Giter Site logo

vookimedlo / alfred-bitwise-evaluator Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 699 KB

Alfred 3 workflow for evaluating bitwise expressions.

License: GNU General Public License v3.0

alfred alfred-3 alfred-workflow alfred3-workflow developer-tools development-tools bitwise-arithmetic bitwise-operators bitwise

alfred-bitwise-evaluator's Introduction

alfred-bitwise-evaluator

Alfred 3 workflow for evaluating bitwise expressions.

Installation

  1. Install alfred-bitwise-evaluator workflow.
  2. All further updates are handled automatically.

Usage

In Alfred, type bitwise and enter your bitwise expression which shall be evaluated.

bitwise evaluate

Selected result is copied to your clipboard.

bitwise show all

Expression is being evaluated as you type the expression. If expression cannot be evaluated, either for illegal characters or syntax error, user will be notified about that.

bitwise show error

Bitwise expression syntax and operators precedence

Workflow is based on Perl, therefore it uses its syntax and operators precedence, which is easy to use. The golden rule in programming languages is the following: "If you are unsure about the operator precedence, always use parentheses to be sure what you are doing.". It's not a shame!

OPERATOR NAME SYNTAX
Bitwise NOT ~a
Bitwise AND a & b
Bitwise OR a
Bitwise XOR a ^ b
Bitwise left shift a << b
Bitwise right shift a >> b

Integer formats

The four formats listed below are printed.

INTEGER FORMAT SYNTAX EXAMPLE
Decimal 1234
Binary 0b1110011
Hexadecimal 0x1234
Octal 01234

Workflow Keyword

The default workflow keyword bitwise could be changed in alfred workflow settings. This variable will not be overwritten once the new workflow update is installed.

bitwise workflow configuration

Note

Before the expression is evaluated, input data will be checked for illegal characters. If those are found, evaluation will not continue. This is done for making the workflow harmless. If you remove this check, you could evaluate any Perl code, which could be pretty dangerous. Do that only if you know what you are doing!!!

alfred-bitwise-evaluator's People

Contributors

shmulvad avatar vookimedlo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.