Colored Text Output in Linux Shell and Bash Scripts

This script is used in a lot of other scripts I produce over time, and it’s very handy for generating colored text output in the terminal. Example of usage Here’s an example of using the colors.sh script: #!/bin/bash source colors.sh echo “${fg_yellow}Yellow ${fg_reset}Normal ${fg_green}Green {$fg_reset}”; Download You can view or download the script here: https://invision-web.net/web/sources/colors.sh […]

Continue reading

The GIT Cheat Sheat

In this article, I’ll be enlisting some of the most common git commands I use when working on software projects. # configure the environment and working user git config –global user.name “John Doe” git config –global user.email “john.doe@example.com” git config –global color.ui true # create the bare repository (for push/pull) repo=repository.git mkdir $repo && cd […]

Continue reading

Computing Arithmetic Expressions given as Strings: C++ Solution

The most basic task any programming language should be able to handle is to compute arithmetic expressions including constants, numbers, variables as well as function calls and other value holding “objects”. I’ve written a simple C++ solution that can solve very simple arithmetic expressions. I think it’s a good starting point for anybody trying to […]

Continue reading

Turing Machine Simulation written in Javascript and PHP

Few years back I’ve been working on a Turing machine implementation in PHP and Javascript. Try out the javascript animated simulation first and then continue reading. Turing machine animated simulation START SIMULATION (press F5 to restart) Delay (1/speed): 30 ms of delay More delay (slower) | Less delay (faster) The Turing machine definition: This file […]

Continue reading

InVision Framework: The View Template Language

Many modern web applications follow the Model-View-Controller pattern in order to separate concerns, or in detailed terms: to avoid mixing the backend processes, business logic, the data structuring and the way all gets displayed to the user. Following this pattern I have developed a simple language which is quite neat, easy to use and understand […]

Continue reading

InVision jQuery Gallery plugin

Web masters often tend to make their web images look neet and fancy. For example, lightbox is today one of the most popular image plugins. However there are also numerous other gallery plugins. And by saying gallery I mean a group or a list of images. The one presented here is of my own creation […]

Continue reading