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
const sumNumbersWithApi = (a, b) => { | |
const url = `https://stark-escarpment-75299.herokuapp.com/?a=${a}&b=${b}`; | |
return fetch(url) | |
.then(response => response.json()) | |
.then(response => response['response']) | |
.then(response => parseInt(response)) | |
.catch((error) => { | |
console.log("there was error:", error.message); | |
}); |
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
const canStart = (response) => { | |
return new Promise((resolve, reject) => { | |
if (response) { | |
resolve(response); | |
} else { | |
reason = new Error("cant start. forbiden"); | |
reject(reason); | |
} | |
}); | |
} |
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
Show hidden characters
{ | |
// Here you can provide your own command line | |
// which is used to run rubocop. The path will be | |
// replaced by the file or folder which needs | |
// to be checked. | |
// | |
// If check_for_rvm or check_for_rbenv is enabled, | |
// it will be prefixed with a call to rvm or rbenv. | |
// If none of them are enabled, the command will be | |
// executed without any additions. |
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
/Users/mariuszblaszczak/.rbenv/shims/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/mariuszblaszczak/.rbenv/versions/1.9.3-p545/bin/zeus start | |
Starting Zeus server v0.15.4 | |
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?}))) | |
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?}))) | |
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?}))) | |
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?}))) | |
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?}))) | |
Status: boot{U}(default_bundle{?}(development_environment{?}(prerake{?}), test_environment{?}(cucumber_environment{?}, test_helper{?}))) | |
Status |
NewerOlder