Skip to content

Instantly share code, notes, and snippets.

View lmmsoft's full-sized avatar
😀
Planning some exciting stuff for 2024

Mingming Lou lmmsoft

😀
Planning some exciting stuff for 2024
View GitHub Profile
@lmmsoft
lmmsoft / WordsDetector.py
Created August 11, 2012 13:07 — forked from lastland/BeyesianAvg.py
尝试用这篇post: http://www.matrix67.com/blog/archives/5044 中的方法实现的一个自动中文抽词算法的Python程序
# -*- coding=utf-8 -*-
# 修改了原gist里space tab混乱的情况
import feedparser
import re
import collections
import math
def info_entropy(words):
result = 0
total = sum([val for _, val in words.iteritems()])
@lmmsoft
lmmsoft / 12306.user.js
Created January 7, 2012 21:56 — forked from quietlynn/12306.user.js
12306 Auto Query => A javascript snippet to help you book ticket
/*
12306 Auto Query => A javascript snippet to help you book tickets online.
Copyright (C) 2011 Jingqin Lynn
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes Sizzle.js