• In depth promise (1) — detailed explanation of promise implementation


    if (typeof Promise === ‘undefined’) { return } There are many libraries to implement promise / A + specification. Lie is a concise library to implement promise / A +, and has passed the promise / A + special test set. However, lie’s code is a bit convoluted. Based on Lie’s code, I modified it […]

  • Pyppeter for slider in iframe


    import asyncio import time import numpy, random import pyppeteer async def main(): IP = “xxxxx” ා proxy IP Port =? XXX? Proxy port browser = await pyppeteer.launch({‘headless’: False, ‘args’: [ ‘–window-size={1300},{600}’ ‘–disable-extensions’, ‘–hide-scrollbars’, ‘–disable-bundled-ppapi-flash’, ‘–mute-audio’, ‘–no-sandbox’, ‘–disable-setuid-sandbox’, ‘–disable-gpu’, ‘–disable-infobars’ f’–proxy-server={ip}:{port}’ ], ‘dumpio’: True }) page = await browser.newPage Open a new page await page.goto (‘url […]

  • Introduction and application of swagger


    1. What is swagger Swagger is a normative and complete framework for generating, describing, invoking and visualizing restful style web services. The overall goal is to make the client and file system update at the same speed as the server. File methods, parameters and models are tightly integrated into the server-side code, allowing the API […]

  • K8s eco weekly | docker open source compose specification


    “K8s ecological weekly” mainly contains some weekly information about k8s ecology that I have come into contact with. Welcome to the Zhihu column “k8s ecology”. Docker open source compose specification helps cloud native application development Docker announced this week that it will open source the compose specification and govern it as an independent organization. Because […]

  • Review of offline Salon of coding Devops 1: Devops code quality


    November 22, sponsored by codingDevops technology salon series “quality” special sessionIt ended successfully in Shanghai. At the event, four technology celebrities from Tencent and other well-known enterprises shared their practical experience in R & D quality and efficiency, and discussed with the audience how to take effective measures to ensure and improve software quality. This […]

  • What problems should be paid attention to when designing API to obtain data through post


    More and more modern websites use front-end and back-end separation architecture. It has become a daily development content to quickly stack spa with front-end MVC framework, and then obtain dynamic data with API. The importance of API used to connect front-end and back-end is also natural. As a front-end coder, it is also very important […]

  • 30mncrnimo armor steel 685


    Protective alloy material for combat equipment, armor steel. The steel grades are 603, 616, 617, 675, 685, 695, 6211 armor steel. And artillery armor steel, high pressure armor steel. 603 armor steel 30crmnmore standard GJB 31a-2000616 armor steel 22SiMn2TiB standard GJB 1496b-2014617 armor steel 30crni2mnmore GJB 31a-2000675 armor steel 30CrNi3MoV GJB 31a-2000685 armor steel 30mncrnimo […]

  • Several ways to realize wordcount


    Thin shell cat /home/sev7e0/access.log | tr -s ‘ ‘ ‘\n’ | sort | uniq -c | sort -r | awk ‘{print $2, $1}’ #The cat command displays the text content at one time #TR – s’ \ n ‘replace spaces in text with enter #Sort sorts all specified files in series and writes the results […]

  • The modification method of never sleeping and not locking screen of Quanzhi a40i Android 7


    To achieve the effect of never sleeping and not locking the screen, you need to modify the corresponding property values in settingprovider. be located: android/frameworks/base/packages/SettingsProvider/res/values/defaults.xml attribute def_screen_off_timeout as well as def_lockscreen_disabled In order to standardize the code, put these two attributes into device and overlay the original value <integer name=”def_screen_off_timeout”>2147483647</integer> <bool name=”def_lockscreen_disabled”>true</bool>

  • The development of front end modularization


    In recent years, web applications have become more complex and huge, and the application scope of Web front-end technology is more extensive. The way of developing web application by directly writing JavaScript, CSS and HTML can’t cope with the development of current web application modularization Modularization refers to the decomposition of a complex system into […]

  • [code box] front end specification summary


    preface Finally, I can write my blog.As the first blog post in 2020, of course, it needs quality and something, so the blogger decided to send you a set of company front-end code specifications accumulated in the second half of 2019. Of course, this set of specifications is still in the first version, but it […]

  • Maven Scala plugin uses. MD in jvmargs configuration – D parameter of tutorial notes


    Maven Scala plugin uses the jvmargs configuration of tutorial notes, and custom properties are used in the jvmargs – D parameter What is jvmargs for instance: $JAVA_ARGS.=“-Dresin.home=$SERVER_ROOT-server -Xms2048M-Xmx2048M-Xmn512M-XX:PermSize=256M -XX:MaxPermSize=256M-XX:+UseConcMarkSweepGC -XX:MaxTenuringThreshold=7-XX:GCTimeRatio=19 -Xnoclassgc-Xloggc:log/gc.log-XX:+PrintGCDetails -XX:+PrintGCTimeStamps-XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0” This is some configuration for tuning JVM parameters Java System.getProperty Java System.getProperty The default value of () method is: | Key | […]