Skip to content

Instantly share code, notes, and snippets.

@friedbrice
Last active March 2, 2018 00:21
Show Gist options
  • Save friedbrice/5e9ec484ed7adc9b44365ff8ddef32d5 to your computer and use it in GitHub Desktop.
Save friedbrice/5e9ec484ed7adc9b44365ff8ddef32d5 to your computer and use it in GitHub Desktop.
Script Templates
#!/usr/bin/env stack
-- stack --resolver lts-10.3 --install-ghc runghc
import System.Environment (getArgs)
main = getArgs >>= traverse (\name -> putStrLn $ "Hello, " ++ name ++ "!")
#!/bin/sh
exec scala -nocompdaemon "$0" "$@"
!#
args.foreach(str => println(s"Hello, $str!"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment