Skip to content

Instantly share code, notes, and snippets.

View qubird's full-sized avatar

Vincenzo Antignano qubird

View GitHub Profile
// In the parent frame
window.addEventListener("message", function(evt) {
var data;
console.debug("Got message: ", evt);
data = JSON.parse(evt.data);
// Do something...
}, false);
{"index": {"_id": 332, "_type": "TestScraper", "_routing": null, "_index": "scarab:test"}}
{"cache": {"length": 165, "normalized": "eJwljEELgjAYhu/9iq9duuQ+aZ5i7NAUFKxEFuHRmKQw/UJHo38f1vV9nueV2/SqTVNl0PvRQXU7lYUGFiHehUZMTQq5OZeQ8BjM3E7L4AeaWoeYXRiw3vvXETGEwIPgND/R1FhnOlrfkhgd0dJx6y1TG7luSj7IfpS0w1vlnXMEgWZn91DsRhDiABJXJPGv4a/5AuZ/Mrg=", "content_type": "text/html"}, "title": {"standard": "name 332"}, "url": {"domain": "example", "full": "http://www.example.com/332", "tld": "com", "query": "", "path": "/332", "subdomain": "www"}, "text": {"standard": "Hello world, I'm 332 \n\n"}, "extra": {"site": 1}, "updated": "2013-08-13T14:38:30.981379", "job": {"project_id": 1, "job_id": 1}, "first_time_indexed": false, "fingerprint": "0x100000ba9be9fed", "_id": 332}
{"index": {"_id": 333, "_type": "TestScraper", "_routing": null, "_index": "scarab:test"}}
{"cache": {"length": 165, "normalized": "eJwljEELgjAYhu/9iq9duuQ+YZ5i7NAUFKxEFtHRmORg+oWORv8+rOv7PM8rt/lFm3tTwBBGD831WFcaWIJ4ExoxNzmU5lRDxlMwczctLjiaOo9YnBmwIYTXATHGyKP
'UPDATE "auth_user" SET "username" = %s, "first_name" = %s, "last_name" = %s, "email" = %s, "password" = %s, "is_staff" = %s, "is_active" = %s, "is_superuser" = %s, "last_login" = %s, "date_joined" = %s WHERE "auth_user"."id" = %s '
self
<django.db.backends.postgresql_psycopg2.base.CursorWrapper object at 0x10dbf8a10>
args
(u'mqmixyq_smithbergescusteinskym',
u'David',