Skip to content

Instantly share code, notes, and snippets.

View goodanthony's full-sized avatar

anthony de silva goodanthony

  • Melbourne - Australia
View GitHub Profile
@goodanthony
goodanthony / gist:7f765500842fd2400b4a1e73b79979c1
Last active August 6, 2022 04:29
Install Ruby 3.1.2 MacOS error
Truied to install Ruby 3.1.2 on MacOs and keep getting a build failed like bellow
BUILD FAILED (macOS 12.5 using ruby-build )
Last 10 log lines:
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/Users/devopsme/.rbenv/versions/3.1.2
--enable-shared
const ArrayChallenge = (arr) => {
const result = arr.reduce((acc, curr) => {
return acc + curr;
}, 0);
const double = result * 2;
const check = arr.some(e => {
return double > e * 2;
});
return check ? "true" : "false";