coverage es6 coverage solution

This article was organized in 2017 to solve the problems encountered in ES6 replacement in gridmanager version 2.3.0. The text is as follows After replacement, it was found that the original test coverage decreased from 72% to 24%. Through the local test of coverage html, it is found that the code used to overwrite the target file is the conver ...

Posted by Thethug on Thu, 12 Dec 2019 17:28:32 +0100

Kubernetes Advanced Node Auto Expansion/Scaling

Kubernetes Advanced Node Auto Expansion/Scaling Catalog: 1. Cluster AutoScaler cloud vendor expansion/scaling 2. Ansible one-click auto-expanding Node 1,Cluster AutoScalerExtension: Cluster AutoScaler periodically detects whether there are sufficient resources to schedule the newly created Pod and calls Cloud Provider to cr ...

Posted by balsdorf on Wed, 11 Dec 2019 22:32:16 +0100

Effectively use Git and Dropbox at the same time?

How to use them together effectively Git and Dropbox ? #1 building I ran into a similar problem and created a small script for it. The idea is to use Dropbox with Git as simply as possible. At present, I have realized it quickly Ruby Code, and I'll add more code soon. The script is available at https://github.com/nuttylabs/box-git. ...

Posted by Hitoshi on Wed, 11 Dec 2019 19:35:10 +0100

JS data structure 0x001: array

0x000 overview The array here refers to the array in the data structure, not specifically the array in JS. Just use js to explore the array in the data structure, because I think JS is more convenient. 0x001 array What is an array? Look at the picture: An array has two elements: Index: 0, 1, 2, 3, 4 in the figure Data: data1-data5 in the fig ...

Posted by ponsho on Wed, 11 Dec 2019 17:20:34 +0100

Document display scheme arrangement in Android App

I. Word, Excel, PPT display 1. Microsoft Office open Api interface If the document content is not very confidential or just needs to preview the document, you can consider using Microsoft's public Api interface. Microsoft Office public Api address: https://view.officeapps.live.com/op/view.aspx? The implementation on Android is as follows: ...

Posted by CoffeeOD on Wed, 11 Dec 2019 16:51:02 +0100

Kotlin core syntax: annotation and reflection

Blog Homepage 1. Declare and apply comments 1.1 application notes The way to use annotations in kotlin is the same as in java, which takes the @ character as the prefix of the name and puts it at the front of the declaration to be annotated. Take a look at the @ Deprecated annotation, which is enhanced in Kotlin with the replaceWith parameter. ...

Posted by Aleks on Wed, 11 Dec 2019 02:12:51 +0100

Using java api to create excel content and send email

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/qq_26654727/article/details/83473968 Article directory Using java api to create excel content and send email Main functions: Core code (SendMail ...

Posted by phpMover on Tue, 10 Dec 2019 21:57:59 +0100

Implement a simple Tomcat

1. Tomcat function Our web application will run in Tomcat. Obviously, the request must arrive at Tomcat first. Tomcat will actually process the request as follows: Provide Socket service: the start of Tomcat must be Socket service, which supports http protocol. Request distribution: a Tomcat can provide services for multiple web applications, ...

Posted by Nat on Tue, 10 Dec 2019 21:15:05 +0100

A quick look at ThreadLocal

Welcome to read and communicate with us. Please leave a message if you have any questions. There are also open sources on GitHub JavaHouse Welcome to star 1 Introduction In Java8, ThreadLocal is a generic class.This class can provide thread variables.Each thread has its own variables.What does this mean?Every thread has its own resources, just ...

Posted by Vik on Mon, 09 Dec 2019 17:49:33 +0100

API Interface Development: Interface Development Returns Result Solution

abstract If the front-end and back-end are separated for project development, the better way for front-end and back-end interaction is to use HTTP+JSON.How can an interface return results that are more concise, elegant, and reasonable, and that can be made clear to front-end developers without increasing the workload for back-end developers? St ...

Posted by sriusa on Mon, 09 Dec 2019 01:44:42 +0100