This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo amazon-linux-extras disable php7.2 | |
sudo amazon-linux-extras disable lamp-mariadb10.2-php7.2 | |
sudo amazon-linux-extras install -y php7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get a point <var>dist</var> units away from <var>$cx</var>,<var>$cy</var> | |
* on angle <var>$ang</var>. | |
* | |
* @param {number} $cx The x coordinate of the origin point. | |
* @param {number} $cy The y coordinate of the origin point. | |
* @param {number} $ang Angle from the origin point to the returned point, in degrees. | |
* @param {number} $dist Unit distance from the origin point to the returned point. | |
* @return {array} x and y coordinates of the return point. | |
*/ |