Skip to content

Instantly share code, notes, and snippets.

@oblank
oblank / bleve_with_jieba.go
Last active May 16, 2023 08:14
bleve结合 jieba 分词实现中文分词
package main
import (
"fmt"
"github.com/blevesearch/bleve"
_ "github.com/wangbin/jiebago/analyse/tokenizers"
"log"
)
func main() {
@oblank
oblank / generate_pdf.php
Created July 29, 2015 08:59
利用 wkhtmltopdf 将html转换成 pdf
$html = '<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head>
<body>'.$html.'</body>
</html>';
//echo $html;
//将本地 HTML 文件转为 PDF
// Run wkhtmltopdf
@oblank
oblank / home.html
Last active August 29, 2015 14:23 — forked from pinscript/home.html
{{define "body"}}
This is the start page.
<br><br>
Check out <a href="/user/5">user 5</a> or <a href="/user/7">user 7</a>.
{{end}}