Snippets Collections
POST /_search
{
   "query" : {
      "term" : { "product" : "chocolate" }
   },
   "sort" : [
       {
          "offer.price" : {
             "mode" :  "avg",
             "order" : "asc",
             "nested": {
                "path": "offer",
                "filter": {
                   "term" : { "offer.color" : "blue" }
                }
             }
          }
       }
    ]
}
copy($$('h1,h2,h3,h4,h5,h6')
  .map(h => '\t'.repeat(h.tagName.slice(-1)-1) + 
        '- ' + h.innerText.trim())
.join('\n'))
copy(
  Array.from(new URLSearchParams(window.location.search))
       .map(([key,val]) => `${key}: ${val}`)
       .join("\n")
)
//logs a table of users who use Yuan currency, displays all info
const onlyYuanUsers = users.filter( user => user.currency === "Yuan Renminbi")
console.table(onlyYuanUsers)

//just display iddx, id, and currency
console.table(onlyYuanUsers, ['id', 'currency'])
const inicio = performance.now();

// Codigo a chequear 

const fin= perfomance.now();

console.log( fin - inicio );
star

Thu May 04 2023 11:40:44 GMT+0000 (Coordinated Universal Time) https://www.elastic.co/guide/en/elasticsearch/reference/current/sort-search-results.html

#console
star

Sun Oct 02 2022 18:53:41 GMT+0000 (Coordinated Universal Time) https://codepo8.github.io/dearconsole/scripts/headings-indented.html

#devtools #chrome #console
star

Sun Oct 02 2022 18:52:41 GMT+0000 (Coordinated Universal Time) https://codepo8.github.io/dearconsole/scripts/get-url-data.html

#chrome #devtools #console
star

Sun Oct 02 2022 18:51:41 GMT+0000 (Coordinated Universal Time) https://codepo8.github.io/dearconsole/scripts/make-document-editable.html

#devtools #chrome #console
star

Tue Jun 29 2021 10:26:39 GMT+0000 (Coordinated Universal Time) https://dev.to/hymanaharon/why-i-will-no-longer-be-using-console-log-to-check-react-state-updates-29el

#console #debugging #react.js
star

Mon Oct 05 2020 12:39:26 GMT+0000 (Coordinated Universal Time)

#perfomance #javascript #console

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension