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 / pam-example.py
Last active May 25, 2020 02:43
NEW UPDATE: https://github.com/pubnub/python/tree/master/python <-- PubNub Access Manager (PAM) Python Full Library for Granting and Revoking Access in Real-Time on the PubNub Real-Time Network.
import pam
## PubNub Access Manager (PAM)
manager = pam.access(
pubkey="pam",
subkey="pam",
seckey="pam"
)
## Grant User Access
@stephenlb
stephenlb / history.md
Last active October 3, 2016 20:29
PubNub History API V2

PubNub History API V2

/v2/history/sub-key/<sub-key>/channel/<channel>?URL_PARAMETERS
URL Parameters:
start (time token): Beginning of a timeline slice (exclusive)
@jeremyvdw
jeremyvdw / apubnub.rb
Created March 5, 2012 18:27
apublish & asubscribe PubNub methods (wrapped in Fibers)
require 'eventmachine'
require 'em-http-request'
require 'yajl'
module PubSub
class Pubnub
#**
#* Pubnub
#*
#* Init the Pubnub Client API
@stephenlb
stephenlb / macvim-install.sh
Created February 18, 2012 07:27
MacVim Terminal Installation
## MacVim Good Terminal Only Installation Guide
## http://www.pubnub.com/
## http://twitter.com/pubnub
## USAGE - Copy+Paste this One-liner:
##
## bash <(curl https://raw.github.com/gist/1858026/macvim-install.sh)
##
## OR - Download this file and execute