node.js implements the transformation from markdowm to HTML
Introduction to the third party package used
Marketed package https://www.npmjs.com/package/marked
The function is to convert markdown text content into HTML code
For example:
var marked = require('marked');
console.log(marked('I am using __markdown__.'));
// Outputs: <p>I am using <strong>markdown</ ...
Posted by KEFE on Sat, 02 May 2020 18:05:19 -0700
Keep decimal places
Keep decimal places
Here I use two methods, the first is to use BigDecimal, and the second is to use DecimalFormat.
The first method:
Usage: pass in the double value and return a String type
public static String keep_two_decimals(double number){
BigDecimal bigDecimal = new BigDecimal(number);
...
Posted by DefunctExodus on Sat, 02 May 2020 11:50:11 -0700
Rotate string to determine whether the string is from rotation
subject
1. To implement a function, k characters in a left-handed string can be used.
BCDA is obtained by turning one character left of ABCD
ABCD left two characters to get CDAB
2. . determine whether a string is a string after rotation of another string.
For example:
Given s1 = AABCD and s2 ...
Posted by jrbilodeau on Sat, 02 May 2020 09:18:01 -0700
Use of chimee component in web video playing scheme
1. Overview
In view of the fact that H5 video is quite different (compatible) in the Web ecological environment, this paper mainly introduces the usage of developing chimee component with qiwutuan to play video.
chimee component address:
http://chimee.org/docs/index.html
2. Features of chimee components
Chimee supports MP4, M3U8, FLV an ...
Posted by morpheuz on Sat, 02 May 2020 09:14:05 -0700
ArangoDB data import
ArangoDB
ArangoDB is an open source and free multi model database, which can flexibly build data models by using documents, graphs and key value pairs. Written in c + +, compared with other databases or graph databases, the community of arangodb is relatively small, with few related materials, most of which are in offi ...
Posted by Kitty on Sat, 02 May 2020 08:23:35 -0700
H5 Mock Server summary
What is Mock Server data?
In short, if the Api (that is, the server interface) is not written, the front-end cannot be debugged. Mock Server is a service used to simulate the Api interface to return JSON data!
Here are three kinds of mock processing, and there are many third-party ones, such as (jsonServer + mockJS, ...
Posted by digitalecartoons on Sat, 02 May 2020 05:10:07 -0700
Compilation principle: write a js interpreter from 0
A js interpreter was written a while ago without relying on any third-party libraries.
Most of the basic functions of JS, except for objects, have been written out so far. Share and review the main implementation and technical details here.
github.com/zuluoaaa/ma...
Resolve a fast-ranking function
0 Initialization
We enter a meaningful ...
Posted by johnSTK on Sat, 02 May 2020 01:52:36 -0700
react combined with d3.js and svg to draw bar statistical chart
Recently, I learned D3 and wrote a small demo based on others' cases. I encountered some problems. Here's the record:
1. Some pits encountered:
(1) V3 and V4 versions in d3.js are quite different, so we must pay attention to the version;
(2) when referencing the JS library file of D3.js, you should install it through ...
Posted by jaydeesmalls on Sat, 02 May 2020 00:38:09 -0700
Detailed explanation of wz framework login function demo1
The purpose of this article is not to introduce how to use it, but to analyze the existing login process and the corresponding adjustments to be made in later formal development.
wz framework (let's promote the technology)
Introduction: Introduction to wz framework
Online experience: Online experience
github: vue-framework-wz
At the ...
Posted by zachrose on Fri, 01 May 2020 21:00:19 -0700
Correct posture of cascading tick in bootstrap treeview
Last article It has been said that it has its own cascading function. You have to use this: https://github.com/patternfly/patternfly-bootstrap-treeview
$('#tree').treeview({
showCheckbox: true,
data: [data], // data is not optional
levels: 3,
enableLinks: true,
hi ...
Posted by snafudawn on Fri, 01 May 2020 10:22:24 -0700