Skip to content

Instantly share code, notes, and snippets.

View matthewerskine's full-sized avatar

Matthew Erskine matthewerskine

  • Scotland
View GitHub Profile
<table cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.45; color: rgb(17, 17, 17);">
<tbody><tr>
<td style="padding: 0px 0px 8px;">
<div style="font-weight: 700; font-size: 16px;">Matt Erskine</div>
<div>Co-founder</div>
</td>
</tr>
<tr>
<td style="padding: 8px 0px; border-top: 1px solid rgb(230, 230, 230);"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAABnCAYAAAANBEUMAAAABHNCSVQICAgIfAhkiAAAAF96VFh0UmF3IHByb2ZpbGUgdHlwZSBBUFAxAAAImeNKT81LLcpMVigoyk/LzEnlUgADYxMuE0sTS6NEAwMDCwMIMDQwMDYEkkZAtjlUKNEABZgamFmaGZsZmgMxiM8FAEi2FMk61EMyAAAgAElEQVR4nO197XWjvtP2+Dn392UrWFLBshWEVBBcQXAF61QQXAFOBXgrwKkAbwWQCiAV4H8F83zA4ifLkpCEwE5W1zk6m01soZd512gAcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHD4mlhcewAEiOgDgA8AzWKxaK46GAcHBhR9EoSnfysAOFK/rxaLBf1/hy+OryC7ZlcEiB
// Place your key bindings in this file to overwrite the defaults
[
// Terminal
{
"key": "ctrl+v",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+v",
@matthewerskine
matthewerskine / vscode-user-settings.json
Created August 16, 2018 08:02
vscode - user settings
{
"workbench.editor.enablePreview": false,
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Allure (rainglow)",
"window.zoomLevel": 0,
"explorer.autoReveal": false,
"git.autofetch": true,
"search.useIgnoreFiles": false,
"editor.fontLigatures": true,
"editor.fontSize": 13,
@matthewerskine
matthewerskine / Dockerfile
Created July 25, 2018 11:27
Alpine Laravel Dockerfile
FROM php:7.2.8-fpm-alpine3.7
# Depedencies
RUN set -x \
&& mkdir -p /var/log/supervisor \
&& apk update \
&& apk add --virtual .build-deps \
alpine-sdk \
autoconf \
sudo \
@matthewerskine
matthewerskine / PlumbingTest.php
Created December 11, 2017 11:31
Test all container bindings can resolve
<?php
class PlumbingTest extends TestCase
{
public function test_the_plumbing()
{
foreach (app()->getBindings() as $key => $binding) {
app($key);
}
<?php
namespace App\Http\Controllers;
use App\Registration\UserRegistrar;
use Laravel\Socialite\Facades\Socialite;
class AuthController extends Controller
{
/**
@matthewerskine
matthewerskine / ResourceDirector.php
Last active September 22, 2019 21:50
Laravel 5.5 Request Director
<?php
namespace App\Http;
use Illuminate\Http\JsonResponse;
use Illuminate\Validation\ValidationException;
use App\Contracts\Http\Resources\ValidatorResourceContract;
class ResourceDirector
{