Skip to content

Instantly share code, notes, and snippets.

@dristic
dristic / main.js
Created August 28, 2013 22:04
PubNub basic publish
var pubnub = PUBNUB.init({
publish_key: 'demo',
subscribe_key: 'demo'
});
pubnub.subscribe({
channel: "myChannel",
callback: function (message) {
console.log("I got the message: " + message);
},
@dristic
dristic / keybase.md
Created July 15, 2014 06:43
Keybase Verification

Keybase proof

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:

@dristic
dristic / controllers.application.js
Created September 16, 2016 20:08
Ember Render Test
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());