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 caches = {}; //add some cache strategy (lru,...) | |
| function execute(cacheId, executeFunction) { | |
| if (caches[id]) { | |
| //there's no problem on calling multiple times a resolve promise | |
| return caches[id]; | |
| } | |
| caches[id] = Promise.resolve(executeFunction); | |
| return caches[id]; | |
| } |
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
| Coverage badges |
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
| <script> | |
| window.ga = | |
| window.ga || | |
| function () { | |
| (ga.q = ga.q || []).push(arguments); | |
| }; | |
| ga.l = +new Date(); | |
| ga('create', 'UA-XXXXX-Y', 'auto'); | |
| ga('send', 'pageview'); | |
| </script> |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <button onclick="test()">CLICAR</button> | |
| </body> |
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
| public interface MyCustomMetricsMBean { | |
| long getTotalFoo(); | |
| } |
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
| final Class<? extends MyCustomMetricsMBean> objectClass = myCustomMetricsMBean.getClass(); | |
| ObjectName name = new ObjectName( | |
| String.format("%s:type=basic,name=%s", objectClass.getPackage().getName(), objectClass.getName()) | |
| ); | |
| mBeanServer.registerMBean(myCustomMetricsMBean, name); |
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
| ... | |
| <parent> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-parent</artifactId> | |
| <version>2.3.0.M4</version> | |
| <relativePath/> | |
| </parent> |
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
| https://jelastic.com/blog/tuning-garbage-collector-java-memory-usage-optimization/ |
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
| https://docs.aws.amazon.com/pt_br/amazondynamodb/latest/developerguide/Streams.html |
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
| Regex: | |
| area de neǵocio: /\$\$([^,]+)/ | |
| sudo docker run --network="host" -d -p 3000:3000 --name=grafana -e "GF_INSTALL_PLUGINS=simpod-json-datasource" grafana/grafana | |
| var express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var _ = require('lodash'); | |
| var app = express(); |
NewerOlder