Skip to content

Instantly share code, notes, and snippets.

Coding at

fengmk2 fengmk2

Coding at
View GitHub Profile

Node 12 值得关注的新特性


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


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

带有特殊字符的文档转 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
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
We couldn’t find that file to show.
View 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);
fengmk2 /
Created Nov 19, 2018 — forked from hollodotme/
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 /
Last active Nov 25, 2018
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 / router.json
Last active Nov 24, 2017
egg router json
View router.json
"name": "home",
"methods": [
"paramNames": [],
"path": "/",
"regexp": "/^(?:\\/(?=$))?$/",
You can’t perform that action at this time.