Skip to content

Instantly share code, notes, and snippets.

@Harrison-M
Created May 6, 2014 21:05
Show Gist options
  • Save Harrison-M/a107ce57d322be67085d to your computer and use it in GitHub Desktop.
Save Harrison-M/a107ce57d322be67085d to your computer and use it in GitHub Desktop.
"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