Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And just for the kicks:

function genie(){ query=`printf "%s+" $@` echo $query result=`curl -s "https://weannie.pannous.com/api?out=simple&input=$query"` echo $result say $result 2>/dev/null } alias hey=genie alias how="genie how" alias what="genie what" alias when="genie when"

me:~$ what is the root of pi It is approximately 1.7725

me:~$ how old is obama Barack Obama is 52 years old



A PR implementing that for Betty: https://github.com/pickhardt/betty/pull/4


me:~$ capital of australia

answer: Sydney.

hmm this is wrong, how to submit a fix for this?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: