Skip to content

Instantly share code, notes, and snippets.

@manuepeva
Forked from azenla/BrinTest.groovy
Created August 20, 2017 05:24
Show Gist options
  • Select an option

  • Save manuepeva/12e49caad331e37dc6f638be7222e252 to your computer and use it in GitHub Desktop.

Select an option

Save manuepeva/12e49caad331e37dc6f638be7222e252 to your computer and use it in GitHub Desktop.
Sergey Brin Higgins test
package com.directmyfile.higgins
import com.directmyfile.higgins.utils.TTS
class Higgins {
static void main(String[] args) {
TTS.speak('Starting Higgins')
TTS.speak('Researching Sergey Brin')
def brin = Freebase.topic('sergey_brin')
def children = brin['property']['/people/person/children']
TTS.speak("Sergey has 1 child by the name of")
brin['property']['/people/person/children']['values'].each {
TTS.speak(it['text'])
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment