Software Development
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 install composer
Updated Instructions Composer has a pretty good page on how to install it. You probably want to use their link because the hash changes every
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/
How do you sync changes from a local project to Github in the cloud, using PHPStorm. And then how do you retrieve the changes on a remote server?
Given the following setup: Mac/PC PhpStorm Git enabled on local directory Using Laravel Valet You publish your changes to Github by using VCS menu, Commit,