Skip to content

Instantly share code, notes, and snippets.

View yasserf's full-sized avatar

Yasser Fadl yasserf

View GitHub Profile
@yasserf
yasserf / golden-sdk.ts
Last active May 11, 2020 03:51
deepstream-rust-core-extreme-rough-example
// This is a core structure that libraries will use to figure out what native APIs to trigger and such
struct DeepstreamCoreOut {
name: String
correlationId: String
action: SDK_ACTION
...
}
let mut output = Vec::new();
let outputMessages = Vec::new();

Keybase proof

I hereby claim:

  • I am yasserf on github.
  • I am yasserf (https://keybase.io/yasserf) on keybase.
  • I have a public key ASAm4ENEWjKqYnwI8cV4SKo9QdJ9oCJ6OVbnShc6P1NjFQo

To claim this, I am signing this object:

@yasserf
yasserf / facebook auth
Created February 12, 2017 13:21
facebook auth with deepstream
var express = require( 'express' );
var passport = require( 'passport' );
var Strategy = require( 'passport-facebook' ).Strategy;
// Configure the Facebook strategy for use by Passport.
//
// OAuth 2.0-based strategies require a `verify` function which receives the
// credential (`accessToken`) for accessing the Facebook API on the user's
// behalf, along with the user's profile. The function must invoke `cb`
// with a user object, which will be set at `req.user` in route handlers after