Skip to content

Instantly share code, notes, and snippets.

:atom:
Coding at yuque.com

fengmk2 fengmk2

:atom:
Coding at yuque.com
Block or report user

Report or block fengmk2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View node12.md

Node 12 值得关注的新特性

前言

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

该版本带来了诸如:

  • V8 更新带来好多不错的特性。
@fengmk2
fengmk2 / WeiboUtil.js
Created Feb 16, 2012
新浪微博mid与url互转实用工具
View WeiboUtil.js
/**
* 新浪微博mid与url互转实用工具
* 作者: XiNGRZ (http://weibo.com/xingrz)
*/
var WeiboUtil = {
// 62进制字典
str62keys: [
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
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 / 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 / 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
You can’t perform that action at this time.