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
/** | |
* Copyright 2013 Kai Sternad | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
import java.text.SimpleDateFormat; | |
import groovyx.net.http.RESTClient | |
/** | |
* This Groovy script connects to the Stack Overflow Api and looks up the latest posts for user supplied tags. | |
* | |
* All unseen questions are then displayed on the console and optionally passed on to Growl | |
* (growlnotify must be installed and in the current execution path). | |
* It is also possible to let the OSX speech synthesizer (/bin/say) say the number of unseen questions per tag. | |
* |