*) Bugfix: socket leak when using HTTP/2.
*) Bugfix: in the $realip_remote_addr variable.
| var AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| accessKeyId: "__id__", | |
| secretAccessKey: "__secret__", | |
| }); | |
| var lexruntime = new AWS.LexRuntime({region: 'us-east-1'}); | |
Controllable Crowd-sale and transferable ownership allows you to change ownership and change exchange rates.
This script1 will allow you to click the name of a game and it will open the corresponding Speed Run Listings for the game
Using the tampermonkey browser extension you can add a custom user script which runs on the Games Done Quick schedule page. ↩
| export default (request) => { | |
| const xhr = require('xhr') | |
| const pub_key = 'demo' // YOUR 2nd PUBLISH KEY | |
| const sub_key = 'demo' // YOUR 2nd SUBSCRIBE KEY | |
| const chncopy = request.channels[0] | |
| const msgcopy = JSON.stringify(request.message) | |
| const url = "http://pubsub.pubnub.com/publish/" + [ | |
| pub_key, sub_key, 0, chncopy, 0, msgcopy | |
| ].join('/') | |
| #!/usr/bin/python | |
| """ | |
| Functions are provided for both the DB and NDB Datastore APIs. | |
| References: | |
| * https://cloud.google.com/appengine/docs/python/datastore/queries | |
| * https://cloud.google.com/appengine/docs/python/ndb/queries | |
| """ | |
| def db_fetch_all(query, limit=100, cursor=None): | 
| ## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
| ## URL Variables | |
| ## http://p.pubnub.com/stream/<SUBKEY>/<CHANNEL>/0/-1 | |
| ## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | |
| ## Demo Stream | |
| while true; do (printf 'GET http://p.pubnub.com/stream/sub-c-5f1b7c8e-fbee-11e3-aa40-02ee2ddab7fe/pubnub-sensor-network/0/-1 HTTP/1.1\r\nHost: pubnub\r\n\r\n'; sleep 5) | nc p.pubnub.com 80; done | |
| ## Local tunnel | |
| curl "http://0.0.0.0:80/publish/demo-36/demo-36/0/ch6/0/1" | 
| // Libraries | |
| #include <math.h> | |
| // Literals | |
| #define THERMISTOR A0 | |
| // Constants | |
| // Thermistor computation | |
| const float ANALOG_STEPS = 4095.0; | |
| const float B_THERM = 3977.0; | 
| (function(){ | |
| // Calculating a PubNub Message Payload Size. | |
| function calculate_payload_size( channel, message ) { | |
| return encodeURIComponent( channel + JSON.stringify(message) ).length + 97; | |
| } | |
| })(); |