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
FROM node:5.1.1 | |
#Install AWS CLI | |
RUN apt-get update | |
RUN apt-get install -y python-pip | |
RUN pip install awscli | |
RUN mkdir -p /root/.aws | |
RUN echo '[default]' > /root/.aws/config | |
RUN echo 'output = json' >> /root/.aws/config | |
RUN echo 'region = us-east-1' >> /root/.aws/config |
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
import React from 'react' | |
import Portal from 'react-portal' | |
class LinkBlock extends React.Component { | |
constructor (props) { | |
super(props) | |
this.state = { | |
href: this.props.node.data.get('href'), | |
showingPopup: false, | |
popup: null, |
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
# Block the main Analytics Spammers | |
# Crazy big list here: http://perishablepress.com/blacklist/ultimate-referrer-blacklist.txt | |
SetEnvIfNoCase Referer semalt.com spammer=yes | |
SetEnvIfNoCase Referer darodar.com spammer=yes | |
SetEnvIfNoCase Referer buttons-for-website.com spammer=yes | |
SetEnvIfNoCase Referer fbdownloader.com spammer=yes | |
SetEnvIfNoCase Referer descargar-musicas-gratis.com spammer=yes | |
SetEnvIfNoCase Referer baixar-musicas-gratis.com spammer=yes | |
SetEnvIfNoCase Referer savetubevideo.com spammer=yes | |
SetEnvIfNoCase Referer srecorder.com spammer=yes |
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
import React from 'react'; | |
import Helmet from 'react-helmet'; | |
import { renderToString, renderToStaticMarkup } from 'react-dom/server'; | |
import { StaticRouter } from 'react-router-dom'; | |
import { AsyncComponentProvider, createAsyncContext } from 'react-async-component'; | |
import asyncBootstrapper from 'react-async-bootstrapper'; | |
import config from '../../../config'; | |
import ServerHTML from './ServerHTML'; |
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
import { Plugin } from 'uppy'; | |
export default class ReduxEmitter extends Plugin { | |
constructor(core, opts) { | |
super(core, opts); | |
this.type = 'redux'; | |
this.id = 'ReduxEmitter'; | |
this.title = 'Redux Emitter'; | |
// set default options | |
const defaultOptions = {}; |
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
// @flow | |
import React from 'react'; | |
import Icon from './Icon'; | |
import type { Props } from './Icon'; | |
export default function CheckboxIcon({ | |
checked, | |
...rest | |
}: Props & { checked: boolean }) { | |
return ( |
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
import Html from 'slate-html-serializer'; | |
// import React from 'react'; | |
// import { FunctionTypes } from 'constants/editor/ViewModel'; | |
// import { Nodes } from 'components/editor'; | |
import { getEventTransfer } from 'slate-react'; | |
import { BlockTypes } from 'constants/editor'; | |
import { Block } from 'slate'; |
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
import mergeStyle from "./mergeStyle/index.js"; | |
/** | |
* A default parseHTML by Slate | |
* | |
* @param {String} html | |
* @return {Object} | |
*/ | |
function slateDOMParser(html) { | |
if (typeof DOMParser === "undefined") { | |
throw new Error( |
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
// @flow | |
import * as React from "react"; | |
import ResizeObserver from "resize-observer-polyfill"; | |
import invariant from "invariant"; | |
type Entry = { | |
+contentRect: { | |
+width: number, | |
+height: number |
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
// The `loader` prop is a Dataloader instance | |
// https://github.com/facebook/dataloader | |
class Dataloader extends React.Component { | |
state = {data: null, isLoaded: false}; | |
componentWillMount() { | |
this.prefetchData(this.props); | |
} | |
componentWillReceiveProps(nextProps) { | |
if (this.props.id !== nextProps.id || this.props.loader !== nextProps.loader) { | |
this.setState({isLoaded: false}); |
OlderNewer