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
<?php | |
/** | |
* The below functions take the single level array of items as an argument | |
* and turn it into a multidimensional array structure (tree), | |
* where each item has an array of sub-items. | |
* | |
* Each item should have at least an `id` and `parent_id`, | |
* where the `parent_id` is `0` if it's top level. | |
* | |
* Source: http://goo.gl/p2GybZ |
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
# Find existing version | |
node --version | |
# Search available Node versions. | |
brew search node | |
# I neeeded a version between > 10.0 < 11. So I chose node@10. | |
brew install node@10 | |
# You can install multiple versions, but you cannot have them available all at once. |