Archive for April, 2017
JavaScript: Get a random number within a range
Posted by delightlylinux in Programming on April 26, 2017
📅 April 26, 2017
The Math object in JavaScript provides the random() function that returns a floating point value from 0 to up to but not including 1.
What if we want to grab an integer, say, from 1 to 25 inclusive?
We can do this easily by modifying the random result to our liking.
Color Test Your Terminal
Posted by delightlylinux in linux on April 11, 2017
📅 April 11, 2017
Are you curious to find out what colors your terminal supports?
The program colortest-python answers this question by displaying colors in a variety of ways.
Put Filenames in Bash Array
Posted by delightlylinux in linux on April 8, 2017
📅 April 8, 2017
Bash arrays can be tricky, so here are a few hints to aid understanding.