Skip to content

Instantly share code, notes, and snippets.

View stephenlb's full-sized avatar
😀
Coding with Rust

Stephen Blum stephenlb

😀
Coding with Rust
View GitHub Profile
@stephenlb
stephenlb / 1.js
Created November 15, 2017 21:06 — forked from domadev812/1.js
Shyam Mongo DB Blog
var pubnub = new PubNub({
publishKey : 'demo',
subscribeKey : 'demo'
})
@stephenlb
stephenlb / 1.html
Created November 15, 2017 21:06 — forked from domadev812/1.html
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.17.0.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
@stephenlb
stephenlb / 1.bash
Created November 15, 2017 21:06 — forked from domadev812/1.bash
Publishing iOS Location Data w/ Swift and Google Maps API
$ pod init
$ {your favorite editor} Podfile
@stephenlb
stephenlb / 1.html
Created November 15, 2017 21:06 — forked from domadev812/1.html
Realtime Location Tracking on a Map using JavaScript
<script type="text/javascript" src="http://pubnub.github.io/eon/lib/eon-map.js"></script>
<link type="text/css" rel="stylesheet" href="http://pubnub.github.io/eon/lib/eon.css" />
<div id='map'></div>
<script type="text/javascript">
var pubnub = new PubNub({
publishKey: 'demo',
subscribeKey: 'demo'
});
eon.map({
pubnub: pubnub,
@stephenlb
stephenlb / 1.bash
Created November 15, 2017 21:06 — forked from domadev812/1.bash
Publishing Android Location on a Live-Updating Map (MapBox)
<dependency>
<groupId>com.pubnub</groupId>
<artifactId>pubnub-gson</artifactId>
<version>4.14.0</version>
</dependency>
@stephenlb
stephenlb / 1.html
Created November 15, 2017 21:06 — forked from domadev812/1.html
Getting Started with JavaScript Realtime Dashboards
<script type="text/javascript" src="//pubnub.github.io/eon/v/eon/1.0.0/eon.js"></script>
<link type="text/css" rel="stylesheet" href="//pubnub.github.io/eon/v/eon/1.0.0/eon.css"/>
@stephenlb
stephenlb / 1.js
Created November 15, 2017 21:06 — forked from domadev812/1.js
Bitcoin Graph Real-Time
pubnub = new PubNub({
publishKey : 'demo',
subscribeKey : 'demo'
})
@stephenlb
stephenlb / 1.bash
Created November 15, 2017 21:06 — forked from domadev812/1.bash
$ npm install -g cordova
@stephenlb
stephenlb / 1.html
Created November 15, 2017 21:06 — forked from domadev812/1.html
encrypted AngularJS
<!doctype html>
<html>
<head>
<script src="<location-of-PubNub-SDK>/pubnub-angular-4.0.2.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
<script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://pubnub.github.io/angular-js/scripts/pubnub-angular.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
</head>
<body>
@stephenlb
stephenlb / 0.txt
Created November 15, 2017 21:06 — forked from domadev812/0.txt
Snippets for D3 Bubble Chart blog
Demo: http://pubnub.github.io/d3-bubble/
Tutorial: http://www.developer.com/java/fun-with-d3.js-data-visualization-eye-candy-with-streaming-json.html