Skip to content

Instantly share code, notes, and snippets.

@nfabian13
nfabian13 / collectionRecord.json
Created August 5, 2015 15:42
this is the structure of the documents of my database mongoDB collection (mongosails4.case)
{
"_id" : ObjectId("55a907962109d0860b71aff1"),
"appointment" : {
"appointment_time" : null,
"customer_requested_appointment_time" : null,
"label" : "",
"service_slot" : ""
},
"asset" : {
"in_service_date" : null,
@nfabian13
nfabian13 / MyReactComponent.js
Created May 16, 2016 20:05 — forked from thmain/MyReactComponent.js
Skeleton React Component with descriptions for all of its lifecycle methods
/**
* @jsx React.DOM
*/
var React = require('react'),
MyReactComponent = React.createClass({
// The object returned by this method sets the initial value of this.state
getInitialState: function(){
return {};