For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2 gem errors on MacOS Mojave.
Make sure openssl is installed on Mac via Homebrew.
| Vue.filter('formatNumber', function (value, decimals = 2, thousandsSeparator = ',') { | |
| let result = parseFloat(value).toFixed(decimals).toString(); | |
| if(thousandsSeparator) result = result.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) | |
| return result | |
| }); |
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2 gem errors on MacOS Mojave.
Make sure openssl is installed on Mac via Homebrew.
$ uname -r
| ipSort = ( ipAddressArray ) -> | |
| ipAddressArray.sort ( a, b ) -> | |
| a = a.split '.' | |
| b = b.split '.' | |
| for i of a | |
| if ( a[i] = parseInt a[i] ) < ( b[i] = parseInt b[i] ) | |
| return -1 | |
| else if a[i] > b[i] | |
| return 1 | |
| return 0 |