Software Development
What is the yarn equivalent of npm install?
Cheat Sheet — What you need to know <span class="markup–strong markup–li-strong" style="font-weight: bold;">npm install</span> === <span class="markup–strong markup–li-strong" style="font-weight: bold;">yarn</span> Install is the default behavior. <span class="markup–strong markup–li-strong" style="font-weight: bold;">npm
How to avoid field accessed via magic method
If you want to remove this without document comments you can uncheck Notify about access to a field via magic method which is found in: Project
How to get the last element of an PHP array
$lastValue = array_values(array_slice($spread, -1))[0]; Reference: https://stackoverflow.com/questions/3687358/whats-the-best-way-to-get-the-last-element-of-an-array-without-deleting-it
How to checkout a different branch in GIT
git checkout branch_name Your code is instantly in a different branch.
Useful Docker commands
List Docker instances Run a Docker instance and make sure ports are mapped: sudo docker run -p 1025:1025 -p 8025:8025 ae2e Run a Docker instance
Bitstamp Encryption
Background Bitstamp requires encryption in order use their API. The example below has a Python script and the equivalent PHP command for the encryption portion.
Highcharts option to specify label y axis
Here is a Highcharts example of how to specify the y axis label: $chart1->options([ ‘title’ => [ ‘text’ => “Spread” ], ‘yAxis’ => [ ‘title’
How to change the default TinyMCE font size
In order to change the TinyMCE font size, follow this article: https://www.tiny.cloud/docs-3x/reference/configuration/Configuration3x@content_css/