This file contains 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
/** | |
* Created by shahartaite on 12/09/2016. | |
*/ | |
const winston = require('winston'); | |
const logzioWinstonTransport = require('winston-logzio'); | |
const loggerOptions = { | |
token: 'YOUR_TOKEN', | |
host: 'listener.logz.io', | |
type: 'nodejs' // if you integrate any other services with logz.io such | |
// as your clientside logs you can differentiate using this property |
This file contains 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
/** | |
* Created by shahartaite on 23/11/2016. | |
*/ | |
import consts from 'js/consts'; | |
export const allLeftNavSelectedFiltersSelector = (state) => state[consts.TOP_LEVEL_STATE_REDUCERS.FILTERING_THING_CAPABILITIES_REDUCER].get(consts.STATE_INNER_OBJECT_NAMES.LEFT_NAV_SELECTED_FILTER_PATHS).toJS(); | |
export const selectedSearchBarTermSelector = (state) => { | |
return state[consts.TOP_LEVEL_STATE_REDUCERS.FILTERING_THING_CAPABILITIES_REDUCER].get(consts.STATE_INNER_OBJECT_NAMES.SEARCH_BAR_TERM).toJS(); | |
} | |
export const graphStartTimeSelector = (state) => state[consts.TOP_LEVEL_STATE_REDUCERS.FILTERING_THING_CAPABILITIES_REDUCER].get(consts.STATE_INNER_OBJECT_NAMES.SELECTED_START_TIME_FOR_GRAPHS); |
This file contains 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
/** | |
* Created by shahartaite on 20/11/2016. | |
*/ | |
import React, {Component} from 'react'; | |
import styles from './time_selection_button_bar.css'; | |
import {Translate} from 'react-redux-i18n'; | |
import CustomTimeButton from 'js/components/custom_time_button/custom_time_button'; | |
import consts from 'js/consts'; | |
import classNames from 'classnames'; |
This file contains 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
const methodReturningPromise = () => { | |
return new Promise((resolve, reject) => { | |
asyncMethodToFetchData(params, (err,result) => { | |
if(err){ | |
reject(err); // return rejected promise to method caller | |
}; | |
else{ | |
resolve(result); // return fulfilled promise to method caller | |
} | |
}); |
This file contains 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
using MongoDB.Driver; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace softwareBlogREST.Controllers | |
{ | |
public static class MongoDatabase | |
{ |
This file contains 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
using MongoDB.Bson; | |
using MongoDB.Bson.Serialization.Attributes; | |
using MongoDB.Driver; | |
using MongoDB.Driver.Linq; | |
using softwareBlogREST.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using System.Web.Http.Cors; |
NewerOlder