Skip to content

Instantly share code, notes, and snippets.

module Main where
import System.Environment
main :: IO ()
main = do
args <- getArgs
let num1 = read $ args !! 0
let num2 = read $ args !! 1
res <- num1 + num2
print res
@thejohnfreeman
thejohnfreeman / 0_reuse_code.js
Created July 17, 2014 14:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
function toTitleCase(str) {
return str.replace(/_/g, " ").replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}