Skip to content

Instantly share code, notes, and snippets.

View sujin2f's full-sized avatar
🎯
Focusing

Sujin sujin2f

🎯
Focusing
View GitHub Profile
import React, { Component } from 'react';
import { withRouter } from 'react-router';
import ArchiveContainer from 'app/components/ArchiveContainer';
import GlobalFooter from 'app/components/Layout/GlobalFooter';
import { getServerPosts, getPostsSuccess, getPostsFail } from 'app/actions/archive';
// getServerPosts function from app/actions/archive
export function getServerPosts(queryVars, source) {
import React, { Component, Fragment } from 'react';
class Test extends Component {
constructor(props) {
super(props);
this.additioanlMethod = this.additioanlMethod.bind(this);
this.state = {
property: 'value',
@sujin2f
sujin2f / Dockerfile
Last active September 16, 2019 17:46
Dockerfile #sujinc.com
# This file is making a Wordpress Docker image for developer which includes xDebug, MailHog, ZipArchive, and increased upload size
FROM wordpress:php7.3
# Install x-debug
RUN apt-get update \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& yum install unzip