Skip to content

Instantly share code, notes, and snippets.

#encoding: utf-8
# Orchard Language Package Cleanner
# Author: Wei "oldrev" Li <liwei@sandwych.com>
# License: New BSD
import sys, os, shutil
LOCAL = 'zh-CN'
@eznj
eznj / star_wars.ino
Last active September 26, 2023 18:24
Arduino Star Wars Song
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
@dreispt
dreispt / oe-admin.sh
Last active May 6, 2018 22:08
A script for one-line installation of OpenERP 7.0 server instances.
#!/bin/bash
################################################################################
# A one-line installation for OpenERP 7.0 server instances
#-------------------------------------------------------------------------------
# USAGE:
#
# * Setup openerp server and create a first OpenERP7 7 instance
# oe-admin install [name1] --full
#
# * Create an additional OpenERP7 7 instance
@onlytiancai
onlytiancai / wawammseg.py
Created June 30, 2012 08:44
写了一个简单的支持中文的正向最大匹配的机械分词,其它不用解释了,就几十行代码
# -*- coding:utf-8 -*-
'写了一个简单的支持中文的正向最大匹配的机械分词,其它不用解释了,就几十行代码'
'搜狗词库下载地址:http://vdisk.weibo.com/s/7RlE5'
import string
__dict = {}
def load_dict(dict_file='words.dic'):
'加载词库,把词库加载成一个key为首字符,value为相关词的列表的字典'