Created
January 31, 2011 18:08
-
-
Save tkf/804494 to your computer and use it in GitHub Desktop.
pythonのワンライナーを使って英単語/熟語から英辞郎とweblioの該当ページを開く
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| webdict(){ | |
| quoted=`python -c "from urllib import quote_plus; print quote_plus('$*')"` | |
| gnome-open http://eow.alc.co.jp/$quoted/UTF-8/ > /dev/null | |
| gnome-open http://ejje.weblio.jp/content/$quoted > /dev/null | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment