Skip to content

Instantly share code, notes, and snippets.

View omerlh's full-sized avatar

Omer Levi Hevroni omerlh

View GitHub Profile
@omerlh
omerlh / gist.js
Created August 10, 2015 06:11
pass bunyan log instance
var options = {
log: log
};
var bearerStategy = new BearerStrategy(options,
function(token, done) {
return done(null, token);
});
passport.use(bearerStategy);
HomeDeviceEntity
{
DeviceId: A
}
HomeDeviceEntity
{
DeviceId: B
}
DeviceGroupEntity
{
@omerlh
omerlh / Option 1
Created May 21, 2015 12:09
Device Group
HomeDeviceEntity
{
DeviceId: A
GroupId: G
}
HomeDeviceEntity
{
DeviceId: B
GroupId: G
}