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
<?php | |
namespace App\Http; | |
use League\Fractal\Pagination\CursorInterface; | |
use League\Fractal\Pagination\PaginatorInterface; | |
use League\Fractal\Resource\ResourceInterface; | |
use League\Fractal\Serializer\ArraySerializer; | |
class Normalizr extends ArraySerializer |
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
/* | |
|-------------------------------------------------------------------------- | |
| Class has function only | |
|-------------------------------------------------------------------------- | |
*/ | |
use App\Criteria; | |
$jobs = $repository | |
->addCriteria(Criteria\Jobs\Approved::class) |
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
gcloud container clusters create animals-app \ | |
--zone=us-central1-a \ | |
--machine-type=n1-standard-1 \ | |
--num-nodes=3 \ | |
--no-enable-autorepair |
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 php:7.2-fpm-alpine3.7 | |
MAINTAINER "Andrew McLagan" | |
RUN apk --no-cache add \ | |
freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev \ | |
wget \ | |
git \ | |
supervisor \ | |
bash \ |
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:8-alpine | |
# Add package manger file and lock file | |
COPY package.json yarn.lock /usr/src | |
# Install dependancies from lockfile and clean package manager cache | |
RUN yarn install --pure-lockfile && \ | |
yarn cache clean | |
# Add your application source |
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:8-alpine | |
MAINTAINER andrewmclagan | |
# ... |
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
load_balancer: | |
image: tutum/haproxy | |
links: | |
- web | |
ports: | |
- "80:80" | |
cache: | |
image: redis |
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
#!/bin/bash | |
set -e | |
cd /var/www | |
php artisan optimize --force | |
php artisan config:cache |
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
# | |
#-------------------------------------------------------------------------- | |
# Install | |
#-------------------------------------------------------------------------- | |
# | |
RUN apk --no-cache add \ | |
libmcrypt-dev \ | |
freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev \ | |
wget \ |
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 PropTypes from 'prop-types'; | |
import DataTable from 'components/DataTable'; | |
import CollectionViewControls from 'components/CollectionViewControls'; | |
/** | |
* Entity collection view | |
* @author Andrew McLagan <andrewmclagan@gmail.com> | |
*/ | |
export default ({ collection, children, filters, className }) => ( |