Skip to content

Instantly share code, notes, and snippets.

@varokas
Created January 31, 2012 00:35
Show Gist options
  • Save varokas/1707842 to your computer and use it in GitHub Desktop.
Save varokas/1707842 to your computer and use it in GitHub Desktop.
Groovy as shell script
#!/usr/bin/env groovy
//Grape: http://groovy.codehaus.org/Grape
//Don't forget to chmod +x (this file)
import com.google.common.collect.HashBiMap
@Grab(group='com.google.code.google-collections', module='google-collect', version='snapshot-20080530')
def getFruit() { [grape:'purple', lemon:'yellow', orange:'orange'] as HashBiMap }
println getFruit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment