Action | Route |
---|---|
Location Record | location |
User Record | user |
Product Record | product |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <WebSocketsClient.h> | |
#include <Hash.h> | |
ESP8266WiFiMulti WiFiMulti; | |
WebSocketsClient webSocket; | |
void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ESP8266 CheckFlashConfig by Markus Sattler | |
This sketch tests if the EEPROM settings of the IDE match to the Hardware | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <Hash.h> |
Example return
Record
{ product: 1,
index: null,
category: null,
type: 'monthly',
year: 2007,
month: 8,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ name: 'Veg Lasagna OS', remoteID: '526', groupId: null }, | |
{ name: 'Ginger Glazed Chicken S', | |
remoteID: '425', | |
groupId: 425 }, | |
{ name: 'Salmon & Kale Salad S', remoteID: '566', groupId: 566 }, | |
{ name: 'Soup - Red Lentil', remoteID: '900226', groupId: null }, | |
{ name: 'Goat Cheese Cheesecake', | |
remoteID: '822', | |
groupId: null }, | |
{ name: 'Moroccan Chick Bowl', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pet.js | |
* | |
* @description :: TODO: You might write a short summary of how this model works and what it represents here. | |
* @docs :: http://sailsjs.org/#!documentation/models | |
*/ | |
module.exports = { | |
attributes: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set hrvst module | |
var hrvst = angular.module('hrvst'); | |
// Configure UI Router | |
hrvst.config([ | |
'$stateProvider', | |
'$urlRouterProvider', | |
function ($stateProvider, $urlRouterProvider) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ identifier: '^gspc', | |
dataSource: 'yahoo', | |
lastFetchedMonthlyData: '2014-10-22T17:42:38.450Z', | |
createdAt: '2014-10-22T17:42:14.828Z', | |
updatedAt: '2014-10-22T17:42:38.473Z', | |
id: 34, | |
rollingReturns: | |
{ threeYear: | |
{ returns: { 'year-1': 10.37066, 'year-2': 22.37496, 'year-3': 12.51932 }, | |
growth: { 'year-1': 8962.93, 'year-2': 6957.48, 'year-3': 6086.45 }, |
A Criteria Object contains the information used to retrieve your desired query results.
Criteria Objects are passed as parameters in the methods that perform CRUD operations, like .find() and .destroy() .
Criteria objects are composed of Query Pairs. This is what they look like.