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
//============================================================================== | |
// Casper generated Thu Feb 14 2013 18:15:16 GMT+0100 (CET) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
var casper = require('casper').create(); | |
casper.options.viewportSize = {width: 1615, height: 964}; | |
casper.start('http://leafletjs.com/'); | |
casper.then(function() { |
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
//============================================================================== | |
// Casper generated Fri Feb 15 2013 14:10:44 GMT+0100 (CET) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
var casper = require('casper').create(); | |
casper.options.viewportSize = {width: 1615, height: 964}; | |
// THIS ONE PRODUCES A BAD SCREENSHOT: | |
casper.start('http://raphaeljs.com/pie.html'); |
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
var page = require('webpage').create(); | |
page.open('http://raphaeljs.com/github/dots.html', function () { | |
page.render('screen2.png'); | |
phantom.exit(); | |
}); |
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
db = context.getParentDatabase() | |
file_path = db.getDocument("annonces_path").configValues.encode('ascii') | |
photos_path = db.getDocument("photos_path").configValues.encode('ascii') | |
annonces_file = open_url("file://"+file_path, asFile=True) | |
csv_data = csv_to_array(annonces_file, delimiter="#") | |
csv_data = csv_data[1:] | |
mapping_main = { | |
'annonce_reference': 0, | |
'annonce_type': 1, |
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
//============================================================================== | |
// Casper generated Mon Jun 10 2013 10:09:49 GMT+0200 (CEST) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
var casper = require('casper').create(); | |
casper.options.viewportSize = {width: 1615, height: 928}; | |
casper.start('http://wetter.orf.at/oes/'); | |
casper.waitForSelector(".mapNavigation li:nth-child(2) div", | |
function success() { |
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
<plominodatabase id="test-subjects"> | |
<design> | |
<dbsettings version="1.16"> | |
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription> | |
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription> | |
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments> | |
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex> | |
<IndexInPortal type="Products.Archetypes.Field.BooleanField">True</IndexInPortal> | |
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode> | |
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments> |
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
{ | |
"games": [ | |
{ | |
"url": "https://api.github.com/gists/5061965", | |
"id": "5061965", | |
"white": "Riveen", | |
"black": "mephux", | |
"result": "0-1" | |
} | |
] |
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
TEST | |
----- | |
// googletesting.js | |
casper.test.begin('Google search retrieves 10 or more results', 5, function suite(test) { | |
casper.start("http://www.google.fr/", function() { | |
test.assertTitle("Google", "google homepage title is the one expected"); | |
test.assertExists('form[action="/yahoo"]', "main form is found"); | |
this.fill('form[action="/search"]', { | |
q: "casperjs" |
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
from landez import TilesManager | |
from landez.proj import GoogleProjection | |
from shapely import geometry | |
from PIL import Image | |
import json | |
import os | |
min_color = 20 | |
max_color = 235 | |
grey_limit = 7 |
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
//============================================================================== | |
// Casper generated Tue Feb 04 2014 16:17:45 GMT+0100 (CET) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
casper.options.viewportSize = {width: 1855, height: 993}; | |
casper.test.begin('Resurrectio test', function(test) { | |
casper.start('http://en.wikipedia.org/wiki/Main_Page'); | |
casper.waitForSelector(x("//*[contains(text(), \'Welcome\')]"), | |
function success() { |
OlderNewer