I hereby claim:
- I am leggetter on github.
- I am leggetter (https://keybase.io/leggetter) on keybase.
- I have a public key ASBKejKymaKZqsk278jz5L22rzoH4blY3ihyRFErUtdwaQo
To claim this, I am signing this object:
// Bundle created using bundlejs: | |
var m=Object.create;var C=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var K=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var U=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var j=(t,r,e,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of I(r))!P.call(t,c)&&c!==e&&C(t,c,{get:()=>r[c],enumerable:!(s=w(r,c))||s.enumerable});return t};var $=(t,r,e)=>(e=t!=null?m(K(t)):{},j(r||!t||!t.__esModule?C(e,"default",{value:t,enumerable:!0}):e,t));var R=U((st,M)=>{"use strict";function F(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var N=t=>{if(!t)return null;let r={};switch(t.type){case"ELEMENT":{let e={},s=z(t.value.attributes),c=N(t.value.children);if(s&&(e=Object.assign(e,s)),c){let E=G(t.value.children);e=Object.assign(e,E)}r[t.value.type]=e;break}case"ATTRIBUTE":{let e=t.value;r[e.name]=e.value;break}case"CONTENT":return{content:t.value}}return r},G=t=>t&&Ar |
I hereby claim:
To claim this, I am signing this object:
var Nexmo = require('../lib/Nexmo'); | |
var nexmo = new Nexmo({ | |
apiKey: config.API_KEY, | |
apiSecret: config.API_SECRET, | |
applicationId: config.APP_ID, | |
privateKey: config.PRIVATE_KEY | |
}, | |
{debug: config.DEBUG} | |
); |
Accept */* | |
Content-Length 145 | |
Content-Type application/x-www-form-urlencoded; charset=UTF-8 | |
User-Agent Nexmo/MessagingHUB/v1.0 | |
X-Forwarded-For 174.36.197.202 | |
X-Forwarded-Proto https |
<script src="//js.pusher.com/2.2/pusher.min.js"></script> | |
<script> | |
var pusher = new Pusher('YOUR_APP_KEY'); | |
var channel = pusher.subscribe('test_channel'); | |
channel.bind('my_event', function(data) { | |
// do something awesome with data | |
// e.g. showNotification(data.msg) | |
}); | |
</script> |
/*! | |
* Pusher JavaScript Library v2.2.3-umd | |
* http://pusher.com/ | |
* | |
* Copyright 2014, Pusher | |
* Released under the MIT licence. | |
*/ | |
// Uses Node, AMD or browser globals to create a module. This example creates | |
// a global even when AMD is used. This is useful if you have some scripts |
var pusherChannelRegexp = /[\w_\-\=@,\.;]+/; | |
var result = pusherChannelRegexp.test( 'foo-bar_1234@=,.;' ); | |
console.log( result ); |
// ==UserScript== | |
// @name Pusher Debug Console Enhancements | |
// @namespace http://www.leggetter.co.uk | |
// @version 0.1 | |
// @description Add a button to the Pusher JavaScript console that lets you replay API Messages | |
// @author Phil @leggetter | |
// @match https://app.pusher.com/apps/*/console | |
// @grant none | |
// ==/UserScript== |
<!doctype html> | |
<html> | |
<head> | |
<title>Stickerify</title> | |
</head> | |
<body> | |
<ul id="stickers"> | |
</ul> |
I'm trying to use Socket.IO with namespaces in order to partition the data. See the following code:
<script src="https://cdn.socket.io/socket.io-1.0.6.js"></script>
<script>
var webglStats = io( '/webgl' );
var videoStats = io( '/video' );
var touchStats = io( '/touch' );
</script>