Tag:lookup

  • Vbs script for searching and replacing batch files

    Time:2020-11-12

    ‘============================================ ‘code by LCX modify a small program on the Internet. I don’t know the author. The program doesn’t implement recursive search on the directory‘put this program in the directory you want to look for, or drag the directory to this script. It is estimated that there are still bugs‘======================================================================================= On Error Resume next Do Until False Findstr = InputBox […]

  • A VBS to find all the hard disk partition in the specified program code

    Time:2020-10-18

    On error resume next ‘ignore all errorsDim filename ‘declaration variableDim re Set re = new regexp ‘to create an instance of a regular expression objectre.Pattern=”^([a-z]|[A-Z])+\:\\\w+\.vbs$” If re.Test(WScript.ScriptFullName)=False Then Msgbox “please run this program in the root directory of the disk, otherwise the search results may be incorrect! “,,”MessageBox” WScript.Quit End If re.Pattern= “^([A-Za-z0-9_ ]|[a-za-z] {1,4} $”‘declares the matching pattern of […]

  • Use which and where is commands to find and locate files in Linux

    Time:2020-8-7

    whichFind files in environment variables -A) find everything, not the first file-N < file name length > specifies the file name length. The specified length must be greater than or equal to the longest file name in all files.-P < file name length > is the same as the – n parameter, but here < […]

  • JS regular find match() and replace() usage examples

    Time:2020-5-16

    The example of this paper describes the use of regular find match() and replace() in JS. Share with you for your reference. The details are as follows: Copy codeThe code is as follows: <html> <head> <script type=”text/javascript”>//String.match (regular): regular search string, return regular characters or strings function t1(){ var con = document.getElementsByName (‘content ‘) [0]. Value; […]

  • Summary of usage examples of regular expressions in go language [find, match, replace, etc.]

    Time:2020-4-24

    This paper gives an example of the usage of regular expression in go language. To share with you for your reference, as follows: The regular expression of go language is very simple to use. Example code: Copy codeThe code is as follows: package test import (     “fmt”     “regexp” ) func RegixBase() {     […]

  • Go Language Dictionary (map) usage example analysis [create, fill, traverse, search, modify, delete]

    Time:2020-4-5

    This paper gives an example of the usage of go Language Dictionary (map). To share with you for your reference, as follows: A dictionary is a built-in data structure that holds an unordered collection of key value pairs. (1) Dictionary creation 1) make(map[KeyType]ValueType, initialCapacity) 2) make(map[KeyType]ValueType) 3) map[KeyType]ValueType{} 4) map[KeyType]ValueType{key1 : value1, key2 : value2, […]

  • Find the same data of several fields in SQL

    Time:2020-3-20

    There is a table Movestar (ID, name, title, address), content: Now you’re going to find everyone with the same title and address Copy codeThe code is as follows: select star1.name,star2.name,star1.title,star1.address from movestar as star1,movestar as star2 where star1.title = star2.title     and star1.address = star2.address     and star1.name < star2.name; Result: Important point: use <, […]

  • The range to find a value in redis

    Time:2020-2-6

    This article comes from a problem of redis in Google Group. One of the students sent a post for help, saying to solve the following problem: he has a list of addresses corresponding to the IP range. Now he needs to give an IP address, and quickly find out which range the IP is in, […]

  • How to find the contact with phonegap

    Time:2019-12-24

    Examples are as follows: <!DOCTYPE html> <html> <head> <meta charset=”UTF-8″> <title>Database Example</title> <script type=”text/javascript” charset=”UTF-8″ src=”cordova.js”></script> <script type=”text/javascript” charset=”UTF-8″> document.addEventListener(“deviceready”, onDeviceReady, false); function onDeviceReady() { } function onSuccess(contacts){ document.write(contacts.length+’contacts found.’); for(var i=0;i<contacts.length;i++){ for(var j=0;j<contacts[i].emails.length;j++){ document.write(“Email=”+contacts[i].emails[j].email); } } alert(‘success’); } function onError(error){ alert(“Ooops!”); } function findContact(){ var myOptions=new ContactFindOptions(); Myoptions. Filter = “Gmail”; // filter Var […]

  • Finding in HTML pages

    Time:2019-3-27

    Recently, we are working on a framework that has been changed by many people. We are dizzy when we look at the code every day. However, we feel that we have made great progress. We have made a backstage configurable front desk to view the different data ranges of two libraries. We are quite satisfied […]

  • An in-depth explanation of multi-table Association query ($lookup) in MongoDB

    Time:2019-3-13

    I. Aggregation Framework Aggregation framework is a high-level query language for MongoDB, which allows us to generate information that does not exist in a new single document by transforming and merging data from multiple documents. Polymerization pipeline operation mainly includes the following parts: command Functional description $project Specify the fields in the output document. $match […]