node.js learning notes arrangement

(1) automatic construction of front-end projects 1. Create myProject project files and corresponding folders var projectData ={ 'name':'myProject', 'fileData':[ { 'name':'css', 'type':'dir' },{ 'name':'js', 'type':'dir' },{ 'name':'images', ' ...

Posted by Spitfire on Sun, 08 Dec 2019 22:35:07 -0800

Source code analysis of vue (internal definition and configuration)

SSR_ATTR var SSR_ATTR = 'data-server-rendered'; Here is the definition of vue SSR. Rendering on the server, which is available on line 6446. I saw a single article for him. ASSET_TYPES var ASSET_TYPES = [ 'component', 'directive', 'filter' ]; The list of asset types that a component can own. Here are several filters, customization, ...

Posted by thisisnuts123 on Sun, 08 Dec 2019 20:39:46 -0800

Use the Power BI API to push real-time data to the streaming dataset and visualize it in the dashboard

Using Power BI to realize the visualization of real-time data is a topic that we are concerned about. The display of push data on the dashboard can be used in scenarios such as command large screen. The content of this video is as follows: https://v.qq.com/x/page/y3030euh6do.html First look at the effect. The curve in the following figur ...

Posted by HSM on Sun, 08 Dec 2019 18:02:02 -0800

Remove html tags in rich text and filters in vue, react and wechat applets

After getting the rich text, as long as part of the content is displayed, the rich text label needs to be removed, and then part of the content needs to be intercepted; then the filter, which has been used many times in wechat applets, has also been encountered in vue and react 1. Remove html tags from rich text Remove html tags and spaces let ...

Posted by gabo on Sun, 08 Dec 2019 05:23:18 -0800

python third-party click module

python third party click Library 1. Install click pip install click 2.click usage and parameters When click ing, the command line input module uses the method similar to the decorator, the main difference is the parameters passed option parameter: Default: set the default value of command line parameters help: parameter d ...

Posted by bruceg on Sun, 08 Dec 2019 04:23:04 -0800

Tips for using Apache commons IO

Commons IO is a utility library that helps develop IO functions. It mainly includes six aspects: Utility class - perform common tasks using static methods input - useful input stream and reader implementation output - useful output stream and writer implementation Filter Various implementations of file filter c ...

Posted by melsi on Sat, 07 Dec 2019 23:35:13 -0800

How to improve the quality of PHP code

To be honest, PHP is under a lot of pressure in terms of code quality. By reading this series of articles, you'll learn how to improve the quality of your PHP code. There are many reasons for this, but it's certainly not just the lack of proper testing tools for the PHP ecosystem. In this article, I want to show you a simple setup for basic qu ...

Posted by Alex-B on Sat, 07 Dec 2019 22:17:16 -0800

Python 3 crawler requests + beautiful soup4 (BS4) tutorial

Soon after learning Python crawler, I couldn't wait to find a website to practice, New style pavilion : a novel website. Precondition preparation Install Python and necessary modules (requests, bs4), don't know requests and bs4 You can go to the official website and watch the course later Reptile thinking At the beginning of writing the white o ...

Posted by Jnerocorp on Sat, 07 Dec 2019 21:50:40 -0800

Scrapy Crawler and Case Analysis

Due to the rapid development of the Internet, all the information is in a state of massive accumulation. We need to obtain a large amount of data from the outside world and filter the useless data in a large amount of data.We need to specify a crawl for our useful data, so there are now crawling techniques that allow us to quickly get the data ...

Posted by klance on Sat, 07 Dec 2019 04:35:57 -0800

python recursion and dichotomy

A built-in function 1. Revsedflip, return iterator # take s Inversion s = 'It's not Shanghai. Tap water comes from the sea' # Method 1 print(s[::-1]) # Method two s1 = reversed(s) i = '' for el in s1:   i +=el   print(i) Slice slice lis = ['nishi','woshi','shuia','benjim'] s = slice(1,3) print(lis[s])   3.formate # Format output s = ...

Posted by Benny007 on Fri, 06 Dec 2019 23:42:27 -0800