Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| module.exports = { | |
| get: function (req, res) { | |
| res.sendfile(req.path.substr(1)); | |
| }, | |
| _config: { | |
| rest: false, | |
| shortcuts: false | |
| } | |
| }; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
| 甲:黝黑锃亮似金刚,水中沉浮吞波澜。有人说江中怪,有人说是葫芦瓢。 | |
| 二人打赌向前瞧,原来是这奥巴马在河里洗澡。 | |
| 这映场小诗一首啊,今儿个过春节呢我给您说一段。说这当今社会啊…… | |
| (阎罗王、马面登场) | |
| 阎王爷:秦时明月汉时关 | |
| 马面:万亿国债钱未还 |
| <?php | |
| function strip_word_html($text, $allowed_tags = '<b><i><sup><sub><em><strong><u><br>') | |
| { | |
| mb_regex_encoding('UTF-8'); | |
| //replace MS special characters first | |
| $search = array('/‘/u', '/’/u', '/“/u', '/”/u', '/—/u'); | |
| $replace = array('\'', '\'', '"', '"', '-'); | |
| $text = preg_replace($search, $replace, $text); | |
| //make sure _all_ html entities are converted to the plain ascii equivalents - it appears | |
| //in some MS headers, some html entities are encoded and some aren't |