Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Patterson mattpatterson94

View GitHub Profile
@danharper
danharper / CatchAllOptionsRequestsProvider.php
Last active Nov 4, 2020
Lumen with CORS and OPTIONS requests
View CatchAllOptionsRequestsProvider.php
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {
@ruph
ruph / .vimrc
Last active Nov 29, 2020
vim settings
View .vimrc
" Use vim settings, rather then vi settings (much better!)
" This must be first, because it changes other options as a side effect.
set nocompatible
set t_Co=256 " iTerm2 supports 256 color mode.
set ai " auto indenting
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
filetype plugin on " use the file type plugins
You can’t perform that action at this time.