programmer group

Sed command of Linux

Sed matches the specified line in the file [email protected]/c/demo>cat test.txt first line second line third line Mustbear @ / C / demo > sed - n '2p' test.txt output line 2 second line Mustbear @ / C / demo > sed - n '2,3p' test.txt ා output lines 2-3 second line third line Sed line content replacement [email protected]/c/demo>cat test.txt first line second line third line hello,world| Mustbear @ / C / demo...

programmer group

Use of custom font icon in vue3.0

Previous methods: Search icoont official website for required icons Add stock in Add to project Download material to local Import font file into page usage method: <i class="iconfont user-icon"></i> Disadvantages: if you want to add a new icon to the project, you need to repeat the above operations and download the overlay file again Manual split line Solution: using SVG sprite loader to automatically load and...

programmer group

Configuring spark environment records under Windows 7

1、 Foreword Recently, I am learning the knowledge related to big data and set up spark environment on my notebook. This article records the steps in this environment. If there is any problem, please correct it. 2、 Download preparation 1. Spark Download Spark download website   http://spark.apache.org/downlFind download spark on the above website: spark-x.x.x-bin-hadoop x.x.tgz and click to download the latest version of...

programmer group

Promise: from two blind eyes to two bright eyes (9) - Async and await

Async function MDN document of Async 1. The return value of async function is promise object 2. The result of promise returned by async function is determined by the result of function execution async function fn1() { return 1 } The output of console.log (fn1()) is of promise type async function fn1() { Return 1 // successful promise with value 1 Throw 2 // promise with reason 2 failed return Promise.reject (3) //...