Skip to content

Instantly share code, notes, and snippets.

View crash7's full-sized avatar
:octocat:
Hopefully learning something new.

Christian Musa crash7

:octocat:
Hopefully learning something new.
  • Stockholm, Sweden
View GitHub Profile
@ryanmark
ryanmark / responsive-screens.js
Created March 5, 2012 15:59
Easy responsive screenshots with Phantom.js
/*
* Take a set of full height screenshots for a range of screensizes.
* phantomjs responsive-screens.js http://www.cnn.com/ png
*
* This will create a directory tree in your current directory which
* mirrors the URL. All files will be named with the current time.
* You can run this on a cron to build an archive of screenshots.
**/
var page = new WebPage(),