Skip to content

Instantly share code, notes, and snippets.

View luggage66's full-sized avatar

Donald Mull Jr. luggage66

View GitHub Profile
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { accessor } from 'react-big-calendar/lib/utils/accessors';
import { accessor as accessorPropType } from 'react-big-calendar/lib/utils/propTypes';
import { noop } from 'lodash';
import { zonedToLocal, localToZoned } from '/client/utils/timezones';
import { hasTime, shiftDate, shiftHour } from '/client/utils/date';
/**
* withTimeZone - HOC to add time zone support to react-big-calendar
const KEYWORD_MAP = {};
/*
KEYWORD_MAP[<user_id>][<term>] returns the reply
*/
KEYWORD_MAP[774078] = {
'jesus': 'http://i.imgur.com/V1kcfEU.jpg'
};
KEYWORD_MAP[617762] = {
'BAM!' : 'SPACE GUN!'
};
@luggage66
luggage66 / Makefile
Created September 8, 2017 15:59 — forked from ssube/Makefile
webpack makefile
# Git
GIT_REF = $(shell git rev-parse --abbrev-ref HEAD)
GIT_REV = $(shell git rev-parse HEAD)
# CI
CI_COMMIT_REF_SLUG ?= $(GIT_REF)
CI_ENVIRONMENT_SLUG ?= local
CI_RUNNER_DESCRIPTION ?= $(shell hostname)
# Debug
import React, { Component } from 'react';
class Notification extends Component {
render() {
var type = this.props.type == null ? 'default' : this.props.type;
return <div className={"notification " + type}>{this.props.message}{this.props.cancellable == 1 && <i className="material-icons" onClick={this.props.onCancel}>&#xE5CD;</i>}</div>;
}
}
export default Notification;