Created
May 6, 2014 21:05
-
-
Save Harrison-M/a107ce57d322be67085d to your computer and use it in GitHub Desktop.
This file contains 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
"use strict"; | |
phantom() = (require) '{phantom}' | |
{phantom.((create (ph) ->{{{ | |
ph.cre})}atePage ({page}) ->{}( | |
{{(}{page.open "ht{})(}tp://www.g()(oogle.com", }{}}}}(status) ->} | |
c}onsole.}({)}(log "o{{pened googl}e? ", stat}us | |
{page.evaluate) (-> document.{}{}{){(title), (re{su}lt) -> /* { */ | |
cons(}){(ole.log 'Page title is ' + r}}esul(t) | |
ph.exit()}{((()))){()} | |
} | |
)} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
// } | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment