Skip to content

Instantly share code, notes, and snippets.

@tkf
Created January 31, 2011 18:08
Show Gist options
  • Select an option

  • Save tkf/804494 to your computer and use it in GitHub Desktop.

Select an option

Save tkf/804494 to your computer and use it in GitHub Desktop.
pythonのワンライナーを使って英単語/熟語から英辞郎とweblioの該当ページを開く
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