Skip to content

Instantly share code, notes, and snippets.

Planning some exciting stuff for 2019

Mingming Lou lmmsoft

Planning some exciting stuff for 2019
Block or report user

Report or block lmmsoft

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lmmsoft /
Created Dec 18, 2018
# from xml.dom.minidom import parse
import xml.dom.minidom
import os
import datetime
def parse_xml(inputFile):
domtree = xml.dom.minidom.parse(inputFile)
root = domtree.documentElement
blog_elements = root.getElementsByTagName("blog")
View to neteast music 豆瓣fm导出到网易云音乐
// 导出douban.fm的红星歌曲到网易云音乐
// 具体使用方法见
var a = "\n<?xml version=\"1.0\" encoding=\"windows-1252\"?>\n<List ListName=\"豆瓣红心\">\n";
for(var i in $$(".songlist-song .top")) {
a = a
+ "<File><FileName>"
+ $$(".songlist-song .top")[i].querySelector(".titles p span .artist-name").innerText.replace("&","&amp;")
+ "-"
+ $$(".songlist-song .top")[i].querySelector(".titles h3 .link").innerText.replace("&","&amp;")
+ "</FileName></File>\n"
lmmsoft /
Created Aug 11, 2012 — forked from lastland/
尝试用这篇post: 中的方法实现的一个自动中文抽词算法的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 / 12306.user.js
Created Jan 7, 2012 — forked from quietlynn/12306.user.js
12306 Auto Query => A javascript snippet to help you book ticket
View 12306.user.js
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.
Includes Sizzle.js
You can’t perform that action at this time.