Gatsby Getting Started Guide - add features from previous page to next page (end)

1. Adjust Gatsby node This is simple. Open gatsby-node.js and add the following code: const path = require("path"); exports.createPages = ({ actions, graphql }) => { const { createPage } = actions const blogPostTemplate = path.resolve(`src/templates/blogPost.js`) return graphql(`   {     allMarkdownRemark {       e ...

Posted on Sat, 02 Nov 2019 23:50:43 -0400 by robvan75

Prometheus: Prometheus monitors Windows machines

I. install WMI exporter First install the WMI? Exporter on the Windows machine you want to monitor. Download address of WMI exporter: https://github.com/martinlindhe/wmi_exporter/releases   After downloading, double-click to complete the installation. After the installation is completed, a self starting service will be created automatical ...

Posted on Sat, 02 Nov 2019 23:45:23 -0400 by rougue

Introduction to Django add, delete, modify and query in CMDB system

Introduction to Django CMDB system Preface Author: he Quan, github address: https://github.com/hequan2017 QQ communication group: 620176501 Through this tutorial, you can start from scratch and write a simple CMDB system independently. At present, there are two main development methods: mvc and mvvc. This tutorial is in mvc mode, that is, ...

Posted on Sat, 02 Nov 2019 23:32:39 -0400 by vampke

Simple performance test of snaic and tornado

Operating system: centos7.3.1611 Python version: 3.6.8 tornado version: 6.0.2 snaic version: 19.9.0 CPU: Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz 4-core tornado has been used as the framework of http related python programs before. Recently, it was found that the performance of the new snaic is very high. Here, under the same hardware condi ...

Posted on Sat, 02 Nov 2019 14:06:29 -0400 by Jaxeed

Dry goods:. net core to read user-defined configuration file, active code

Many people don't understand how to read configuration files in. NET CORE. I have two articles here. The last one introduces how to read file information through appsettings.json configuration. This article teaches you to customize the configuration file: 1. Create a configuration file under the project { "FileMap": { "ImgPath": " ...

Posted on Sat, 02 Nov 2019 11:59:23 -0400 by Zeceer

Failed to verify the iview form?

The project needs to be encouraged. It's almost convenient to use with elementUI for a while. In the process of using form validation, how to avoid the occasional exception of failed validation? 1: set attributes to < form > Tags: model = "fromdata" and: rules = "fromrules" and ref = "fromdatadom" 2: set th ...

Posted on Sat, 02 Nov 2019 11:11:53 -0400 by HektoR

JS writes different functions after hovering for a few seconds

Hello, I'm vortex nail. Preface: In recent weeks, I have been defending my own Open source player component based on React , thinking that the functions are almost the same, but ignoring a very important function of the player: when hovering over the video playing interface, the mouse will disappear after a certain period of time, and the contr ...

Posted on Sat, 02 Nov 2019 07:09:12 -0400 by omegared

Realization principle of linked list data structure

What is a linked list A common data storage structure is a linear table, but it does not store data in linear order, but each node stores the pointer of the next node. What is recursive algorithm In the data structure of linked list, we often use recursive algorithm. recursive algorithm It is a process of directly or indirectly calling algorith ...

Posted on Sat, 02 Nov 2019 06:24:51 -0400 by jamessw

Using backtracking method to calculate the maximum score of xiaoxiaole game

Preface This is a very simple game of eliminating music. In a M*N grid, there are a total of items. Players can exchange two items in column or row. When there are 3-5 consecutive identical items in the column or row direction, these items can be eliminated. The scores of eliminating 3, 4 and 5 consecutive identical items are 1, 3 and 10 respec ...

Posted on Sat, 02 Nov 2019 03:39:10 -0400 by mlampard

RxPermissions Usage Summary

First come to the conclusion. API Remarks Callback result request Return permission name is not supported;Returned permission result: true when all agree, false otherwise Application result: false requestEach List the name and application result of each authority Permission Name: ...

Posted on Fri, 01 Nov 2019 16:24:06 -0400 by sarah