https://use-the-index-luke.com/sql/partial-results/fetch-next-page
Visto en: https://explainextended.com/2009/07/20/hierarchical-data-in-mysql-parents-and-children-in-one-query/
SELECT CONCAT(REPEAT(' ', level - 1), id) AS treeitem, parent, level
FROM (
SELECT _id AS id, parent,
@cl := @cl + 1 AS level
FROM (
SELECT @r AS _id,
(
Realiza un curl, recupera la respuesta, busca si aparece la palabra ERROR en la response, cuenta cuantas veces ocurre y si ocurre envía un exit 2 para que falle. Si 0 es que response no devolvió ERROR en ningún sitio.
echo "============> SonarQube's Quality Gate <============" &&
#Initializing two variables
ERR_COUNT=`curl http://127.0.0.1:9000/api/qualitygates/project_status?projectKey=MyAwesomeProjectKey -L | grep -Eo 'ERROR' | wc -l`
#Check whether they are equal
if [ $ERR_COUNT -eq 0 ]
then
Promise.prototype.finally = function (cb) {
const res = () => this;
return this.then(value =>
Promise.resolve(cb({state: "fulfilled", value})).then(res)
, reason =>
Promise.resolve(cb({state: "rejected", reason})).then(res)
);
};
Fuente: electron/electron#1344 (comment)
En el main index.html
// index.html
// Open all links in external browser
let shell = require('electron').shell
document.addEventListener('click', function (event) {
Extraído de: https://blog.jetbrains.com/webstorm/2018/01/working-with-vue-js-in-webstorm/#comment-308241
Here are the exact instructions for using the WebStorm debugger while using the Webstorm Vue development plug-in:
If you don’t already have a run configuration: Edit Configuration
- Add New Configuration->NPM
- Name: start