somePrototype = {
someMethod: function() {
return this.name;
}
};
Object.create(somePrototype, {
name: {
value: 'John'
},
//дальше другие атрибуты объекта
});
getImages: function(req, res) {
var page = req.param('page');
LibraryImage
.find()
.paginate({
page: page,
limit: 20
})
.done(function(error, images) {
if (error) {
res.serverError(error);
} else {
res.json(images);
}
});
}
WebFont({
google: ['Press+Start+2P'],
active: function() {
//your code on font loaded
}
});
python -c 'import gyp; print gyp.__file__';
## Print out where gyp module located
mv /usr/lib/python2.7/site-packages/gyp /usr/lib/python2.7/site-packages/gyp_backup
## You must use your output and replace paths with your one
python -c 'import gyp; print gyp.__file__';
## Ensure that this module not used now