[JS pocket book] Chapter 9: using JS to operate HTML elements

By valentinogagliardiTranslator: front-end witSource: github In recent days, I have no way to send 200 + cash to my public account. The way of participation is as follows:https://mp.weixin.qq.com/s/PT... Document object model (DOM) JS there are many places for us to Tucao, but not so bad. As a script language running in browser, it is very us ...

Posted by sanchan on Tue, 22 Oct 2019 18:19:26 -0700

Finish reading Runloop

Runloop is a basic component closely related to threads, and it is behind many functions related to threads. This article will summarize runloop from the following aspects: What is runloop The role of runloop The relationship between runloop and thread Detailed introduction of runloop and source code analysis Analysis of runloop principle runl ...

Posted by korngold on Fri, 18 Oct 2019 15:20:08 -0700

Vi. explicit lock and AQS

Explicit locks and AQS I. explicit lock The Synchronized keyword combines with the monitor of the object. The JVM provides us with a kind of semantics of "built-in lock". This kind of lock is very simple. We don't need to care about the process of locking and releasing the lock. We just need to tell the virtual machine which code bloc ...

Posted by duhhh33 on Thu, 17 Oct 2019 15:28:40 -0700

Using code to send SMS

Interface specification /** * initialization *@ param serverIP required parameter server address *@ param serverPort required parameter server port *@ param softVersion required parameter REST version number */ REST($serverIP,$serverPort,$softVersion) /** *Set primary account * *@ param AccountSid master account *@ param ...

Posted by fredyap1234 on Thu, 17 Oct 2019 12:54:51 -0700

Solutions for high concurrency scenarios like seckill

Atomic transaction operation of redis <?php $http = new swoole_http_server("0.0.0.0", 9509); // Monitor 9509 $http->set(array( 'reactor_num' => 2, //reactor thread num 'worker_num' => 4 //worker process num )); $http->on('request', function (swoole_http_request $request, swoole_http_re ...

Posted by chu70077 on Thu, 17 Oct 2019 08:53:18 -0700

Basic essence of TypeScript

Original address: Basic essence of TypeScript github address of basic notes: https://github.com/qiqihaobenben/Front-End-Basics Either watch or star. Type considerations Array type There are two types of annotation, with particular attention to the second using the TS built-in Array generic interface. let arr1: number[] = [1,2,3] // The follo ...

Posted by onegative on Wed, 16 Oct 2019 21:05:07 -0700

A collection of various derivations

A collection of various derivations   Derivation formula We've learned the simplest list derivation and generator expressions before. But in addition, there are dictionary derivation, set derivation and so on. The following is a detailed derivation format with list derivation as an example, which is also applicable to othe ...

Posted by jiggens on Wed, 16 Oct 2019 12:59:42 -0700

Porting kfifo based on Linux to STM32 (supporting mutually exclusive access of os)

Porting kfifo based on Linux to STM32 (supporting mutually exclusive access of os) About kfifo Kfifo is a First In First Out data structure in the kernel, which uses the data structure of circular queue to realize; it provides a boundless byte stream service, and the most important point is that it uses the parallel lock free programming techno ...

Posted by regiemon on Wed, 16 Oct 2019 09:58:49 -0700

Learning record (day02-Es6 template string, deconstruction assignment, arrow function, data structure, for..of traversal, rest parameter, extended operator))

Day02(Es6 template string, deconstruction assignment, arrow function, data structure, for..of traversal, rest parameter, extension operator) [TOC] 1.1.1 template string Template string to simplify string patching //statement var str = ``; //Embedded variables var str = `${variable}`; // username + "___" + password // `${username} ---- ...

Posted by HaZaRd420 on Wed, 16 Oct 2019 06:50:44 -0700

Python Introduction and Basic Knowledge

1. notes * * 1.1 single line comment # The first python annotation 1.2 Multi-line Notes The first one python Notes' ' ** 2. Specify the spacer sep** When there is no sep, the default spacer is a space >>> print(1,2,3) 1 2 3 You can specify spacers when there is sep For example, sep=&qu ...

Posted by edtlov on Mon, 14 Oct 2019 11:23:37 -0700