I hereby claim:
- I am dristic on github.
- I am dristic (https://keybase.io/dristic) on keybase.
- I have a public key whose fingerprint is 3A49 BD33 6BF7 4DBF 6B77 13AD 3CB8 2B60 B08E B032
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<!-- Chat List Page --> | |
<div data-role="page" id="chatListPage" data-theme="c" class="type-chat-list"> | |
<div data-role="header"> | |
<h1>Current Chats</h1> | |
</div> | |
<div data-role="content"> | |
<input type="text" name="name" id="chatRoomName" placeholder="Chat Room Name" /> | |
<a href="#" id="newChatButton" data-role="button">Join New Chat</a> |
pubnub.history({ | |
channel: chatChannel, | |
limit: 100 | |
}, function (messages) { | |
messages = messages[0]; | |
messages = messages || []; | |
for(var i = 0; i < messages.length; i++) { | |
handleMessage(messages[i], false); | |
} |
CACHE MANIFEST | |
# 2013-05-13:v1.3.2 | |
# Explicitly cached master entries. | |
CACHE: | |
index.html | |
css/screen.css | |
img/pw_pattern.png | |
js/messenger.js | |
http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css |
var pubnub = PUBNUB.init({ | |
publish_key: 'demo', | |
subscribe_key: 'demo' | |
}); | |
// Here is where you can use PubNub Presence to get the UUID of the other user | |
// var uuid = 'ABC123' | |
pubnub.subscribe({ | |
user: uuid, // This tells PubNub to use WebRTC Data Channel |
var MyCollection = Backbone.PubNub.Collection.extend({ | |
name: 'MyCollection', | |
pubnub: pubnub | |
}); |
var pubnub = PUBNUB.init({ | |
publish_key: 'demo', | |
subscribe_key: 'demo' | |
}); | |
pubnub.subscribe({ | |
channel: "myChannel", | |
callback: function (message) { | |
console.log("I got the message: " + message); | |
}, |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
foo: [], | |
init: function () { | |
let arr = []; | |
for (let i = 0; i < 1000; i++) { | |
arr.push('Test' + Math.random()); |
<head> | |
<title>PubNub Messenger</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
<link rel="apple-touch-icon href=icon.png"> | |
<link rel="apple-touch-startup-image href=startup.png"> |
<div data-role="page" id="chatPage" data-theme="c" class="type-interior"> | |
<div data-role="content"> | |
<div class="content-primary"> | |
<div data-role="header" data-position="fixed" data-tap-toggle="false"> | |
<h1>Pub Messenger</h1> | |
</div><!-- /header --> | |
<div data-role="content"> | |
<ul data-role="listview" id="messageList"> |