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
// NEIL's thing | |
var pagestogo = 3; | |
var script_jQuery=document.createElement('script'); | |
script_jQuery.setAttribute('src','//code.jquery.com/jquery-latest.min.js'); | |
document.body.appendChild(script_jQuery); | |
var apiKey = "keylGUSqrw15bnk8T"; | |
var hostUrl = "https://api.airtable.com/v0/appG3ImiHnRxIvJoo/Table%201"; | |
var headers = { |
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
// wait for our chat to connect | |
myChat.on('$.connected', () => { | |
// search for 50 old `message` events | |
myChat.search({ | |
reverse: true, | |
event: 'message', | |
limit: 50 | |
}).on('message', (data) => { | |
// when messages are returned, render them like normal messages | |
renderMessage(data); |
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
export default (request) => { | |
const kvstore = require('kvstore'); | |
const xhr = require('xhr'); | |
const http_options = { | |
"method": "POST", | |
"headers": { | |
"Authorization": "Bearer xvEdXQG3nyyXoFldhgvaoDE7Plipdz", | |
"Content-Type": "application/json" | |
}, |
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
import Cookie | |
from google.appengine.api import urlfetch | |
from urlparse import urljoin | |
import mechanize | |
from StringIO import StringIO | |
class GAEOpener(object): | |
def __init__(self): | |
self.cookie = Cookie.SimpleCookie() |