Archive for December, 2011


Madoka

#!/bin/zsh
BINGAPPLICATIONID=”C54CB829E27500E5F679F8B78D2382D012BB4140″
BingTranslatorAPI=”http://api.microsofttranslator.com/v2/Http.svc/\
Translate?appId=$BINGAPPLICATIONID&text=$1&from=${2:-en}&to=${3:-zh-chs}”
echo “Translating the word \”$1\” from ${2:-en} into ${3:-zh-chs}”
wget -qO- $BingTranslatorAPI | sed ‘s/\//g’