Commit 63ba92bb 63ba92bb686682d7b6d2b17f9b72fca3f7f5f568 by Brikou CARRE

tweaked sample description annotation

1 parent 01c97982
1 /* 1 /*
2 Create a mosaic image from all headline photos on BBC homepage 2 * Create a mosaic image from all headline photos on BBC homepage
3 */ 3 */
4 4
5 var buildPage, casper, currentLink, images, nbLinks, next; 5 var buildPage, casper, currentLink, images, nbLinks, next;
6 6
......
1 /* 1 /*
2 This script will add a custom HTTP status code handler, here for 404 pages. 2 * This script will add a custom HTTP status code handler, here for 404 pages.
3 */ 3 */
4 4
5 var casper, links; 5 var casper, links;
6 6
......
1 /* 1 /*
2 Capture multiple pages of google search results 2 * Capture multiple pages of google search results
3 3 *
4 Usage: $ casperjs googlepagination.coffee my search terms 4 * Usage: $ casperjs googlepagination.coffee my search terms
5 5 *
6 (all arguments will be used as the query) 6 * (all arguments will be used as the query)
7 */ 7 */
8 8
9 var casper, currentPage, processPage; 9 var casper, currentPage, processPage;
10 10
......
1 var casper; 1 var casper = require("casper").create({
2
3 casper = require("casper").create({
4 logLevel: "debug" 2 logLevel: "debug"
5 }); 3 });
6 4
......
1 /* 1 /*
2 This script will capture a screenshot of a twitter account page 2 * This script will capture a screenshot of a twitter account page
3 Usage: $ casperjs screenshot.coffee <twitter-account> <filename.[jpg|png|pdf]> 3 * Usage: $ casperjs screenshot.coffee <twitter-account> <filename.[jpg|png|pdf]>
4 */ 4 */
5 5
6 var casper, filename, twitterAccount; 6 var casper, filename, twitterAccount;
7 7
......
1 /* 1 /*
2 This script will add a custom HTTP status code handler, here for 404 pages. 2 * This script will add a custom HTTP status code handler, here for 404 pages.
3 */ 3 */
4 4
5 var casper; 5 var casper = require("casper").create({
6
7 casper = require("casper").create({
8 httpStatusHandlers: { 6 httpStatusHandlers: {
9 404: function(self, resource) { 7 404: function(self, resource) {
10 this.echo("Resource at " + resource.url + " not found (404)", "COMMENT"); 8 this.echo("Resource at " + resource.url + " not found (404)", "COMMENT");
......