Skip to content

Instantly share code, notes, and snippets.

@hktonylee
Created November 13, 2014 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hktonylee/d356b21fadc47e487343 to your computer and use it in GitHub Desktop.
Save hktonylee/d356b21fadc47e487343 to your computer and use it in GitHub Desktop.
#!/bin/sh
exec scala "$0" "$@"
!#
object HelloWorld {
def main(args: Array[String]) {
println("Hello, world! " + args.toList)
}
}
HelloWorld.main(args)
// Reference: http://www.scala-lang.org/old/node/166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment