Order list

<html> <head> <meta charset=”UTF-8″> </head> <body> <h4>Digital list:</h4> <ol> <li>Apple</li> <li>banana</li> <li>lemon</li> <li>orange</li> </ol> <h4>Letter list:</h4> <ol type=”A”> <li>Apple</li> <li>banana</li> <li>lemon</li> <li>orange</li> </ol> <h4>List of small office letters:</h4> <ol type=”a”> <li>Apple</li> <li>Banana</li> <li>lemon</li> <li>orange</li> </ol> <h4>Roman letters list:</h4> <ol type=”I”> <li>Apple</li> <li>banana</li> <li>lemon</li> <li>Orange</li> </ol> <h4>lowercase Roman letters list:</h4> <ol type=”i”> <li>Apple</li> <li>Banana</li> <li>Lemon</li> <li>Orange</li> […]

Input box limit

1. The text box can only enter the number code (the decimal point cannot be input) <input οnkeyup=”this.value=this.value.replace(/\D/g,”)” onafterpaste=”this.value=this.value.replace(/\D/g,”)”> 2. You can only enter numbers and you can pass the number. <input οnkeyup=”if(isNaN(value))execCommand(‘undo’)” onafterpaste=”if(isNaN(value))execCommand(‘undo’)”> <input name = txt1 οNchange = “IF (/\ d/.test (this.value)) {alert (‘only enter the number’); this.Value = ”;}”> 3. Number and […]

Virtual DOM and Diff algorithm Tokki

Virtual DOM The essence of virtual DOM is a JS object. The virtual DOM reduces the operation of the real DOM. When modifying the data, it is to modify the virtual DOM to generate a new virtual DOM. New and old virtual DOM uses the Diff algorithm to get the patch (that is, the part […]

OCIOS development: collection view UicollectionViewHierarch

Brief introduction UICOLLECTIONView and UICollectionViewController class are newly introduced APIs introduced by iOS6. They are used to display the collection view. The layout is more flexible and can achieve multiple columns of layouts. The usage is similar to UitableView and UITableViewController. Use UICOLLECTIONView to implement the three protocols of UICOLLECTIONDATASORCE, UICOLLECTIONDELEGate, UICOLLECTIONDELEGateFlowLowLowLayLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLowLoGateFlow. UICollectionViewFlowLayout UICOLLECTIONViewFlowLowLayout is […]

Seeking quality-LeetCode 204-Python

Statistics all less than non -negative integer The number of quality numbers ofn . Example: Input: 10 output: 4 Explanation: There are 4 quality numbers ofless than 10, and they are 2, 3, 5, 7. python: class Solution(object): def countPrimes(self, n): “”” :type n: int :rtype: int “”” prime = [True]*(n+10) for i in range(2,n+1): if […]

linux kernel environment Set up -0x00

[MD] I am idle, record the following environment of Linux Kernel, here is mainly to follow the master Arttnab3 step by step $ sudo apt-get update $ sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils qemu flex libncurses5-dev fakeroot build-essential ncurses-dev xz-utils libssl-dev bc bison libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev libelf-dev There are three ways in […]

Multimodal Machine Learning: A Survey and Taxonomy/Multi -mode Motor Learning Relations

directory 1. Introduction 2. Review (Review) 3. Reprerentation 4. Maping/mapping) 5. Alignate (alignment) 6. Fusion 7. Co-Learning (Co-Learning) 8. Conclusion below is the notes compiled every chapter of each chapter: 1. Introduction Thesis generally introduces five directions/challenges of multi-mode state: representation, translation, alignment, fusion, and co-learning. 2. historical retrospective (Review) Simple historical retrospective in the […]

IOS-UIView commonly used Setneedsdisplay and SetNeedslayout

1. Setneedsdisplay and SetNeedslayout methodsFirst of all, both methods are asynchronous. Setneedsdisplay will call the DrawRect method automatically, so that you can get UIGRAPHICSGETCURRENTCONTExt to draw. And Setneedslayout will call LayoutsubViews by default,can process some data in the sub -view.In summary, setneedsdisplay is convenient for drawing, and LayoutSubViews is convenient for data. LayoutsubViews will be […]

Vue sub -component takes the father&#8217;s component value and render it to the page

vue.comPonent (‘my-component’, { props: {{ // Basic types (`null` and` undefined` will pass any type verification) Propa: Number, // Multiple possible types propb: [string, number], // The must -have string propc: {{ Type: String, required: true }, // Numbers with the default value propd: {{ Type: NUMBER, default: 100 }, // Object with the default […]

taskset command introduction

1. Introduction Because of the influence of cache, in order to performance, the scheduler itself tends to allow the same process to run on the same CPU. Taskset can be used to set up a CPU affinity for existing processes or newly created processes, so that the process can be specified in the specified process. […]

Use Class class to pack AJAX

Article Catalog 1. The process of using Class package 2. How to use the encapsulated AJAX 1.GET method 2.post method Summary Use the Class class to make a simple packaging of AJAX in order to use it 1. The process of using Class package How to pack: /* URL Data datatype */ class axios { […]

How to understand QuerySelector (all)

QuerySelector and QuerySelectOlAll belong to the SELECTORS API Level 1 specification. This specification has begun to develop as early as 2006, and formed the prototype of QuerySelector (ALL) in October 2007. Because of its early development, except for IE6 and 7, all browsers are basically supported. These two methods can act on Element, Document, and […]

[python, word] 2. Use python-docx to write to the content content

1. Add text content 1.1 Add title Method: DOC.add_heading(“Title Content”,level=Title level) from docx import Document doc = Document() doc.add_heading(“Add a first -level title”,level=1) 1.2 Add paragraph Method: DOC.add_paragraph(”Paragraph text content”) from docx import Document doc = Document() doc.add_heading(“Add a first -level title”,level=1) paragraph1 = doc.add_paragraph(“Add paragraph 1”) paragraph2 = doc.add_paragraph(“Add paragraph 2”) 1.3 Add text […]

Create mqtt use instance python

Environment: CentOS 7, Python3 download source file http://mosquitto.org/download/Compilation and installation make sudo make install executable command file is placed in /usr/local/bin /usr/local/sbin Configuration file Put in /etc/mosquitto custom configuration file mosquitto.conf cp mosquitto.conf.example mosquitto.conf Modify end mouth level 1883 startup service /usr/local/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf server.py import paho.mqtt.client as mqtt def on_connect(client, userdata, flags, rc): print(“Connected […]

[Operation] Python Experiment 3 [Regular expression] Z

1. matching URL There is a batch of URLs: http://www.interoem.com/messageinfo.asp?id=35 http://3995503.com/class/class09/news_show.asp?id=14 http://lib.wzmc.edu.cn/news/onews.asp?id=769 http://www.zy-ls.com/alfx.asp?newsid=377&id=6 http://www.fincm.com/newslist.asp?id=415 Need to be regular: http://www.interoem.com/  http://3995503.com/  http://lib.wzmc.edu.cn/  http://www.zy-ls.com/  http://www.fincm.com/ import re S=[‘http://www.interoem.com/messageinfo.asp?id=35′ ,’http://3995503.com/class/class09/news_show.asp?id=14’, ‘http://lib.wzmc.edu.cn/news/onews.asp?id=769’, ‘http://www.zy-ls.com/alfx.asp?newsid=377&id=6’, ‘http://www.fincm.com/newslist.asp?id=415′] for i in S: t=re.sub(r'(\.com/.+)’,’.com/’,i) if t==i: t=re.sub(r'(\.cn/.+)’,’.cn/’,i) print(t) 2. Find all words import re str=”hello world ha ha” pat='[a-zA-Z]+’ ans=re.findall(pat,str) print(ans)   3. Matching […]

1 1 1 1, medium -order, and post -order non -recursive algorithm non -recursive pioneer, medium order, and post -order traversal

The definition part of the algorithm is as follows #include <bits/stdc++.h> #define N 1005 using namespace std; struct BiTree{ int data; BiTree *lc=nullptr,*rc=nullptr; }; stack<BiTree*> bs; int n,pre[N],in[N],post[N]; can be according tobinary tree’s prelude to the order of the order in the preface and the post -sequence of the tree (the simplest algorithm) Test examples […]

Use Python to read Excel data

Demand is as follows:Read the test data in the SHEET in the Excel table, and convert it to JSON format data #coding:utf-8 import json import xlrd import sys reload(sys) sys.setdefaultencoding(‘utf-8’) def tableToJson(): source = xlrd.open_workbook(r”C:\Users\Administrator\Desktop\0603\0603Interface.xlsx”) # Get all sheet in Workbook sheets = source.sheets() # 5 5 5 All sheet throughout print len(sheets) #15 list […]

java configuration articles

1. Install SQL Server 2014:SQL Server 2014 Installation Graphic SQL Server 2014 Installation illustration SQL Server 2014 network disk link:http://pan.baidu.com/s/1bn0SHIJPassword: LH9G 2, configuration environment variable:http://jingyan.baidu.com/article/c85b7a6414f2ee003bac95d5.html jdk (JDK-7U67-Windows-X64) network disk link:http://pan.baidu.com/s/1c06Wwm8Password: 79sd       variable name: java_home variable value: C: \ Programfiles \ Java \ JDK1.7.0       variable name: classpath       variable value:.;%Java_home%\ lib \ […]

[Noi] [2010] [Energy Collection] [Mobius function]

Recently, Mobius, this knowledge point that has been put on hold, has been picked up, and the second -level conclusion of the characteristics of the Mobes function μ is also a little knowledge of one or two. Starting is more suitable. Essence Essence Energy collection There is a rectangular land in the building. He planted […]