Skip to content

Instantly share code, notes, and snippets.

:atom:
Coding at yuque.com

fengmk2 fengmk2

View GitHub Profile
View 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
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);
total++;
@fengmk2
fengmk2 / Install-nginx-with-http2-support.md
Created Nov 19, 2018 — forked from hollodotme/Install-nginx-with-http2-support.md
Install nginx with http2 support on ubuntu 14.04 LTS (Trusty)
View Install-nginx-with-http2-support.md

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 Nov 25, 2018
lake to markdown
View lake.md

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?

View link-with-attributes.md
@fengmk2
fengmk2 / router.json
Last active Nov 24, 2017
egg router json
View router.json
[
{
"name": "home",
"methods": [
"HEAD",
"GET"
],
"paramNames": [],
"path": "/",
"regexp": "/^(?:\\/(?=$))?$/",
@fengmk2
fengmk2 / npm-install-yarn-npminstall-next.js.md
Created Aug 10, 2017
Taipei: npm install VS yarn VS npminstall on next.js hello world
@fengmk2
fengmk2 / WHATWG-url.js
Created Jun 19, 2017
hostname from WHATWG
View WHATWG-url.js
'use strict';
const URL = require('url').URL;
const Benchmark = require('benchmark');
const benchmarks = require('beautify-benchmark');
const path = require('path');
function hostname1(host) {
if (!host) return '';
return host.split(':')[0];
You can’t perform that action at this time.