Skip to content

Instantly share code, notes, and snippets.

View mwalczak's full-sized avatar
🎯
Focusing

Mateusz Walczak mwalczak

🎯
Focusing
View GitHub Profile
@nhoizey
nhoizey / screenshots.js
Created November 12, 2012 17:07
Take screenshots at different viewport sizes using CasperJS
/*
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes.
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed
*
* Usage:
* $ casperjs screenshots.js http://example.com
*/
var casper = require("casper").create();