Chart support
· ☕ 1 分钟
Simple yet flexible JavaScript charting for designers & developers

Mermaid support
· ☕ 1 分钟
Generate diagrams, charts, graphs or flows from markdown-like text via javascript.

MathJax support
· ☕ 1 分钟
A JavaScript display engine for mathematics that works in all browsers.No more setup for readers. It just works.

Katex support
· ☕ 1 分钟
KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.

Flowchart support
· ☕ 1 分钟
flowchart.js is a flowchart DSL and SVG render that runs in the browser and terminal. Nodes and connections are defined in separately so that nodes can be reused and connections can be quickly changed.

Cartoon
· ☕ 1 分钟
cartoon gallery

Photo
· ☕ 1 分钟
Photo Gallery

Node.js 抓取中文网页乱码的若干问题
· ☕ 1 分钟

 

使用 iconv-lite 解决 request 乱码问题

Node.js 抓取非 utf-8 的中文网页时会出现乱码问题,比如网易的首页编码是 gb2312,抓取时会出现乱码

var request = require('request')  
var url = 'http://www.163.com'

request(url, function (err, res, body) {  
    console.log(body)
})

可以使用 iconv-lite 来解决


将 Sublime Text 3 添加到右键菜单上
· ☕ 2 分钟

sublime-text

当你想浏览到一个文件夹/文件时,想要编辑它,很自然的会右键看看有哪些可编辑的方式。当安装sublime text之后,一般的代码文件右键都有有“使用sublime text 2/3”打开的命令,文件夹(工程目录)就没有相应的命令。当然可以自定义添加,有如下3种方法。