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种方法。


趣味题:重男轻女的村庄
· ☕ 1 分钟

题目

在一个世世代代都重男轻女的村庄里,村长决定颁布一条法律,村子里没有生育出儿子的夫妻可以一直生育直到生出儿子为止,假设现在村子上的男女比例是1:1,这条法律颁布之后的若干年后村子的男女比例将会()


· ☕ 7 分钟

作者:Makrembolitissa
链接:https://www.zhihu.com/question/567324626/answer/2763920916
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


· ☕ 0 分钟