Skip to content

Instantly share code, notes, and snippets.

View rjstires's full-sized avatar

Robert Stires rjstires

  • Greater Philadelphia Area
View GitHub Profile
@rjstires
rjstires / MaybeRenderContent.ts
Last active November 7, 2018 21:56
Is this too much?
import React from 'react';
interface Props {
loading: any;
data?: any;
error?: any;
isEmpty: (data: any) => boolean;
renderEmpty: () => JSX.Element;
@rjstires
rjstires / new_events_observable.js
Last active March 8, 2018 02:09
new_events_observable.js
import * as Rx from 'rxjs/Rx';
import { API_ROOT } from 'src/constants';
import Axios, { AxiosResponse } from 'axios';
import * as moment from 'moment';
function createDatestamp() {
return moment().utc().format('YYYY-MM-DDTHH:mm:ss');
}
let datestamp = createDatestamp();