Skip to content

Instantly share code, notes, and snippets.

View pblca's full-sized avatar
🔫
projecting

pblc pblca

🔫
projecting
  • garbage.gg
  • San Francisco
View GitHub Profile
<!-- Include the PubNub Library -->
<script src="https://cdn.pubnub.com/pubnub-ds-b2.js"></script>
<!-- Instantiate PubNub -->
<script type="text/javascript">
var PUBNUB_demo = PUBNUB.init({
publish_key: 'Your Publish Key Here',
subscribe_key: 'Your Subscribe key Here'
});
@pblca
pblca / instantiate.js
Last active August 29, 2015 14:14
A Test of multi-language gist changer
require('antigravity');
var pubnub = PUBNUB.init({
publish_key : 'pub-c-df94b72e-7d48-4df1-8876-2cccc1afe0f8',
subscribe_key : 'sub-c-c5b3ec0c-d248-11e4-95a3-0619f8945a4f',
ssl : (('https:' == document.location.protocol) ? true : false)
});
function rand(len){
var text = "";
var charset = "abcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < len; i++ ) {