Skip to content

Instantly share code, notes, and snippets.

View fengmk2's full-sized avatar
:atom:
Coding at antgroup.com

fengmk2 fengmk2

:atom:
Coding at antgroup.com
View GitHub Profile

Node 12 值得关注的新特性

前言

时隔一年,Node.js 12 如约而至,正式发布第一个 Current 版本。

该版本带来了诸如:

  • V8 更新带来好多不错的特性。

aaa bbb

aaa

bbb

@fengmk2
fengmk2 / table.md
Last active April 9, 2019 15:21
table.md

带有特殊字符的文档转 markdown

表格分界限符

Parameter Type (length) Description Required Example
business_type String If more than one type is involved, separate type values with vertical bar (|). Y 1|2|3|4|5
or
1
hotel_name String Hotel name that consists of numbers, letters, spaces, and special characters including ,.<>()[]/\-,. If more than one hotel name exists, separate values with vertical bar (|). Specify this field only when business_type is 1 (Hotel). Y zlidu, sluhg-987, 889utng
@fengmk2
fengmk2 / meta.md
Last active March 18, 2019 05:31
We couldn’t find that file to show.
@fengmk2
fengmk2 / crash.js
Created January 19, 2019 11:27
viz crash.js
'use strict';
const Viz = require('viz.js');
const { Module, render } = require('viz.js/full.render.js');
const viz = new Viz({ Module, render });
let total = 0;
async function graphviz(content) {
const svg = await viz.renderString(content);
total++;
@fengmk2
fengmk2 / demo.md
Last active December 12, 2018 08:31
1













@fengmk2
fengmk2 / Install-nginx-with-http2-support.md
Created November 19, 2018 19:01 — forked from hollodotme/Install-nginx-with-http2-support.md
Install nginx with http2 support on ubuntu 14.04 LTS (Trusty)

How to install nginx (>= 1.9.5) with http2 support on Ubuntu 14.04 LTS (Trusty)

IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!

Remove old nginx

Remove old nginx incl. nginx-common:

apt-get autoremove --purge nginx nginx-common
@fengmk2
fengmk2 / lake.md
Last active November 25, 2018 16:58
lake to markdown

Mastering Markdown

Markdown is a lightweight and easy-to-use syntax for styling all forms of writing on the GitHub platform.
What you will learn:

  • How the Markdown format makes styled collaborative editing easy
  • How Markdown differs from traditional formatting approaches
  • How to use Markdown to format text
  • How to leverage GitHub’s automatic Markdown rendering
  • How to apply GitHub’s unique Markdown extensions

What is Markdown?

@fengmk2
fengmk2 / link-with-attributes.md
Last active November 23, 2018 17:12
Master Markdown
@fengmk2
fengmk2 / router.json
Last active November 24, 2017 01:10
egg router json
[
{
"name": "home",
"methods": [
"HEAD",
"GET"
],
"paramNames": [],
"path": "/",
"regexp": "/^(?:\\/(?=$))?$/",