EDITOR="code --wait" rails credentials:edit
This file contains hidden or 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
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
This file contains hidden or 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
| /** | |
| Using reduce: https://www.w3schools.com/jsref/jsref_reduce.asp | |
| Using concat: https://www.w3schools.com/jsref/jsref_concat_array.asp | |
| The reduce() method reduces the array to a single value. | |
| The reduce() method executes a provided function for each value of the array (from left-to-right). | |
| The return value of the function is stored in an accumulator (result/total). |
This file contains hidden or 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
| group :development do | |
| # your dev gems on top | |
| gem 'guard-livereload', '~> 2.5', require: false | |
| gem 'rack-livereload' | |
| end |