Skip to content

Instantly share code, notes, and snippets.

View DerekTBrown's full-sized avatar
🏠
Working from home

Derek Brown DerekTBrown

🏠
Working from home
View GitHub Profile
@jarettmillard
jarettmillard / cast_receiver_2.0.0.d.ts
Created May 4, 2017 19:52
TypeScript Definitions for Google Cast receiver
declare module cast {
export class receiver {
/**
* Version of the cast SDK.
*/
static VERSION: string;
/**
* The Cast receiver logger object.
* Sets the log verbosity level.
@pulkitsinghal
pulkitsinghal / my-model.js
Last active September 20, 2018 05:53
Non-Static (instance) remote methods for loopback
var loopback = require('loopback');
// HINT(s):
// Getting the app object: http://docs.strongloop.com/display/public/LB/Working+with+LoopBack+objects
// From a model script: http://docs.strongloop.com/display/public/LB/Working+with+LoopBack+objects#WorkingwithLoopBackobjects-Fromamodelscript
module.exports = function(StoreModel) {
StoreModel.prototype.instanceRemoteMethodSignature = function(cb) {
console.log('print this instance object: ', this);
cb(null);
};