Bash Colors and Content in Linux Terminal Prompt

The PS1 Bash Environment Variable The command prompt and terminal appearance are governed by an environment variable called PS1. According to the Bash man page, PS1 represents the primary prompt string which is displayed when the shell is ready to read a command. The allowed content in PS1 consists of several backslash-escaped special characters whose meaning is listed in the PROMPTING section of the … 

 

JavaScript Best Practices: Functions

Function expressions: Function declarations: Never declare a function in a non-function block (if, while, etc). Assign the function to a variable instead. Browsers will allow you to do it, but they all interpret it differently, which is bad news bears. Note: ECMA-262 defines a block as a list of statements. A function declaration is not … 

 

Public APIs

A collective list of JSON APIs for use in web development. Animals API Description Auth HTTPS Link IUCN IUCN Red List of Threatened Species token No Go! Petfinder Adoption No Yes Go! RescueGroups Adoption No Yes Go! Anime API Description Auth HTTPS Link AniList AniList Anime OAuth No Go! Kitsu Kitsu Anime OAuth No Go! … 

 

Ruby – Methods

Methods provide a way to collect and organize programs statements and expressions into one place so that you can use them in an easy way and repeatedly when you want. The majority of Ruby’s operators are Methods. Here is an example of a definition of a method name hello def hello puts “Hellow, world!” end … 

 

Ruby Variables

Local Variables A local variable has a local scope or context. If defined within a method, its scope is kept within that method. Local variables must begin with either a lowercase letter or an underscore (_) Must not be prefixed with @, @@, or $ because they are reserved for other types of variables Instance …