Skip to content

Instantly share code, notes, and snippets.

@hzqtc
hzqtc / dict-cli.py
Last active December 16, 2015 15:39
Command line English-Chinese dictionary. Data from http://www.iciba.com. Requires lxml, clint and mpg123 (for pronouncing only).
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import getopt
import lxml.html
import re
import subprocess
import sys
import urllib
anonymous
anonymous / gist:660794
Created November 3, 2010 04:26
~/projects/jruby ➔ echo $M2_HOME
/Users/headius/apache-maven-3.0/
~/projects/jruby ➔ gem install org.clojure.clojure
Installing from Maven using install at /Users/headius/apache-maven-3.0/bin
Successfully installed org.clojure.clojure-1.2.0-java
1 gem installed
Installing ri documentation for org.clojure.clojure-1.2.0-java...
Installing RDoc documentation for org.clojure.clojure-1.2.0-java...
@voyeg3r
voyeg3r / apt-fast
Created May 21, 2010 16:18
apt-fast with aria2c
#!/bin/sh
# Last Change: 2011/10/06
# apt-fast v0.02 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source
# if you do anything cool with it, let me know so I can publish or host it for you
# contact me at admin@mattparnell.com
# Special thanks to Travis/travisn000 from the PCLinux Forums for making improvements that allow
# for more complex apt-get commands. See the thread: http://www.pclinuxos.com/forum/index.php/topic,66385.0.html
# adicionar suporte aos metalinks no aria2: http://ubuntuforums.org/showthread.php?t=1493421
# veja também apt-metalink: http://github.com/tatsuhiro-t/apt-metalink